Fixed race condition in test

This commit is contained in:
Ole Tange 2011-05-31 19:53:25 +02:00
parent b84663bac8
commit bd18c891fc
2 changed files with 29 additions and 6 deletions

View file

@ -5,7 +5,10 @@ SERVER2=parallel-server2
echo '### Test --onall' echo '### Test --onall'
parallel --onall -S parallel@$SERVER2,$SERVER1 '(echo {3} {2}) | awk \{print\ \$2}' ::: a b c ::: 1 2 3 parallel --onall -S parallel@$SERVER2,$SERVER1 '(echo {3} {2}) | awk \{print\ \$2}' ::: a b c ::: 1 2 3
parallel --onall -S parallel@$SERVER2,$SERVER1 -u '(echo {3} {2}) | awk \{print\ \$2}' ::: a b c ::: 1 2 3 echo '### Test | --onall'
seq 3 | parallel --onall -S parallel@$SERVER2,$SERVER1 '(echo {3} {2}) | awk \{print\ \$2}' ::: a b c :::: -
echo '### Test --onall -u'
parallel --onall -S parallel@$SERVER2,$SERVER1 -u '(echo {3} {2}) | awk \{print\ \$2}' ::: a b c ::: 1 2 3 | sort
echo '### Test --nonall' echo '### Test --nonall'
parallel --nonall -S parallel@$SERVER2,$SERVER1 'hostname' parallel --nonall -S parallel@$SERVER2,$SERVER1 'hostname'

View file

@ -17,23 +17,43 @@
1 1
2 2
3 3
1 ### Test | --onall
1 1
2 2
3 3
2
1 1
3
2 2
3 3
1 1
2
3
1 1
2 2
3
1
2
3
1
2
3
### Test --onall -u
1
1
1
1
1
1
2
2
2
2
2
2 2
3 3
3 3
1 3
2 3
3
3 3
### Test --nonall ### Test --nonall
nlv.pi.dk nlv.pi.dk