Project

General

Profile

Evolution #4035

Voir si restart-wrapper est toujours utile en 2.4

Added by Daniel Dehennin over 7 years ago. Updated almost 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
09/11/2012
Due date:
% Done:

100%

Spent time:
Distribution:
EOLE 2.4

Description

Voir ce que fait exactement source:sbin/restart-wrapper fourni par eole et s’il est toujours utiles


Related issues

Related to Distribution EOLE - Evolution #3096: Revoir les paquet eole-common et eolebase* et la politique de nommage Fermé 01/28/2013 02/01/2013

Associated revisions

Revision 217268ed (diff)
Added by Emmanuel GARETTE about 7 years ago

reecriture de restart-wrapper en bash (fixes #4035)

Revision e31e6926 (diff)
Added by Emmanuel GARETTE about 7 years ago

reecriture de restart-wrapper en bash (fixes #4035)

History

#1 Updated by Joël Cuissinat about 7 years ago

  • Status changed from Nouveau to En attente d'informations
  • Target version changed from Eole 2.4-dev-1 to Eole 2.4-dev-2

#2 Updated by Emmanuel GARETTE about 7 years ago

  • Assigned To set to Emmanuel GARETTE

#3 Updated by Emmanuel GARETTE about 7 years ago

  • Status changed from En attente d'informations to Résolu
  • % Done changed from 0 to 100

#5 Updated by Joël Cuissinat about 7 years ago

  • Status changed from Résolu to Réouvert
  • % Done changed from 100 to 50

Suite à l'ajout de la fonction _valid_action(), l'action status n'est n'est plus disponible et le test unitaire associé ne passe plus :

root@eoleng-24:~# py.test /usr/share/creole/tests/test_creoleservice.py 
======================================================== test session starts ==========================================
platform linux2 -- Python 2.7.3 -- pytest-1.3.4
test path 1: /usr/share/creole/tests/test_creoleservice.py

../usr/share/creole/tests/test_creoleservice.py F..

[ ... ]

    def test_service_code():
        """ 
        test sur les codes retour de CreoleService
        """ 
        if isfile('/etc/init.d/ntp'):
            assert system('CreoleService ntp stop') == 0
            assert system('CreoleService ntp status') != 0
            assert system('CreoleService ntp start') == 0
>           assert system('CreoleService ntp status') == 0
E           assert 256 == 0
E            +  where 256 = system('CreoleService ntp status')

Est-ce volontaire ?

#6 Updated by Emmanuel GARETTE about 7 years ago

  • Status changed from Réouvert to Résolu
  • % Done changed from 50 to 100

#7 Updated by Joël Cuissinat almost 7 years ago

  • Status changed from Résolu to Fermé
root@scribe:~# py.test /usr/share/creole/tests/test_creoleservice.py 
======================================================== test session starts ========================================================
platform linux2 -- Python 2.7.3 -- pytest-1.3.4
test path 1: /usr/share/creole/tests/test_creoleservice.py

../usr/share/creole/tests/test_creoleservice.py ...

===================================================== 3 passed in 0.54 seconds ======================================================

Also available in: Atom PDF