X-Git-Url: http://git.annexia.org/?p=whenjobs.git;a=blobdiff_plain;f=tests%2Fjobs%2Ftest_run.sh;h=ad2bcde166c34ec6c5282bf33e7f6e2d9471a0df;hp=13cd8447d79989fa4408ad554e7a28f220898b20;hb=82b61d8519571f6a3feadc8575958945292c6d9f;hpb=28d4576308b10064eda39827c419aa33e1041041 diff --git a/tests/jobs/test_run.sh b/tests/jobs/test_run.sh index 13cd844..ad2bcde 100755 --- a/tests/jobs/test_run.sh +++ b/tests/jobs/test_run.sh @@ -60,6 +60,10 @@ done trap - INT TERM QUIT EXIT rm -rf "$testdir/.whenjobs" +# Sort the output by job serial number, so that jobs that happened to +# fire off in parallel are still recorded in order. +sort -n -o "$testdir/test_output" "$testdir/test_output" + # Check the test output matches the expected output. if ! cmp -s "$testdir/test_output" "$1.expected"; then echo "$0: $1: test output did not match expected output"