Project

General

Profile

Anomalie #5937

Test invalide dans synchro_zephir

Added by Joël Cuissinat over 7 years ago. Updated over 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
09/02/2013
Due date:
09/06/2013
% Done:

100%

Estimated time:
0.50 h
Spent time:
Distribution:
EOLE 2.3

Description

La ligne suivante n'est pas bonne :

root@pf-amon:~# grep "system_out(" /usr/bin/synchro_zephir 
check, out, err = system_out('/usr/bin/tail', '-3', '/var/log/uucp/Log')

Ci-dessous ce que ça donne et ce qu'on aurait voulu !

>>> from pyeole.process import system_out
>>> system_out('/usr/bin/tail', '-3', '/var/log/uucp/Log') # bad syntax
(0, '-3', '')
>>> system_out(['/usr/bin/tail', '-3', '/var/log/uucp/Log']) # good syntax
(0, "uucico zephir - (2013-09-03 11:19:56.38 25576) Handshake successful (protocol 't')\n
uucico zephir root (2013-09-03 11:19:56.44 25576) Sending /tmp/site721.tar (235810 bytes)\n
uucico zephir - (2013-09-03 11:19:58.84 25576) Call complete (4 seconds 235810 bytes 58952 bps)\n", '')

Associated revisions

Revision c5d50e3a (diff)
Added by Joël Cuissinat over 7 years ago

  • bin/synchro_zephir : correction d'un test

Fixes #5937 @15m

History

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

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#2 Updated by Fabrice Barconnière over 7 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF