testsuite: Less fragile.

This commit is contained in:
Ole Tange 2012-11-20 00:42:19 +01:00
parent 9c8a03bdf2
commit ce19870938
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,8 @@ echo '### Test of --progress with no jobs'
stdout parallel --progress "sleep 1; echo {}" < /dev/null stdout parallel --progress "sleep 1; echo {}" < /dev/null
echo '### bug #34422: parallel -X --eta crashes with div by zero' echo '### bug #34422: parallel -X --eta crashes with div by zero'
seq 2 | stdout parallel -X --eta echo # We do not care how long it took
seq 2 | stdout parallel -X --eta echo | grep -E -v 'ETA:.*avg'
echo '### --timeout --onall on remote machines: 2*slept 1, 2 jobs failed' echo '### --timeout --onall on remote machines: 2*slept 1, 2 jobs failed'
parallel -j0 --timeout 6 --onall -S localhost,parallel@parallel-server1 'sleep {}; echo slept {}' ::: 1 8 9 ; echo jobs failed: $? parallel -j0 --timeout 6 --onall -S localhost,parallel@parallel-server1 'sleep {}; echo slept {}' ::: 1 8 9 ; echo jobs failed: $?

View file

@ -19,7 +19,6 @@ Computers / CPU cores / Max jobs to run
1:local / 2 / 1 1:local / 2 / 1
Computer:jobs running/jobs completed/%of started jobs/Average seconds to complete Computer:jobs running/jobs completed/%of started jobs/Average seconds to complete
local:1/0/100%/0.0s ETA: 0s 0left 0.00avg local:0/1/100%/1.0s
### --timeout --onall on remote machines: 2*slept 1, 2 jobs failed ### --timeout --onall on remote machines: 2*slept 1, 2 jobs failed
slept 1 slept 1
slept 1 slept 1