Fix EXTRA_DIST in Makefiles.
[whenjobs.git] / tests / jobs / test_run.sh
index 13cd844..ad2bcde 100755 (executable)
@@ -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"