parallel/testsuite/tests-to-run/parallel-local6.sh
Ole Tange be6fe3846f parallel: Bugfix for -k --timeout used in --filter-host.
--sshloginfile is now searched for in . too.
--timeout more efficient.
Passes testsuite.
2013-08-16 13:11:35 +02:00

14 lines
498 B
Bash
Executable file

#!/bin/bash
echo '### Test --joblog with exitval and Test --joblog with signal'
parallel --joblog /tmp/parallel_joblog_exitval 'sleep {} && echo sleep was not killed=BAD' ::: 100 2>/dev/null &
parallel --joblog /tmp/parallel_joblog_signal 'sleep {}' ::: 100 2>/dev/null &
sleep 1
killall -6 sleep
sleep 2
grep -q 134 /tmp/parallel_joblog_exitval && echo exitval OK
grep -q '[^0-9]6[^0-9]' /tmp/parallel_joblog_signal && echo signal OK
rm /tmp/parallel_joblog_exitval /tmp/parallel_joblog_signal