diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-05-04 18:56:29 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-05-04 18:56:29 +0000 |
commit | d39fdbcd444ee62ca6118b9bdf8314bc206fbb08 (patch) | |
tree | 897c2df00e30b0a66f35c05e75817c349be4c155 /infrastructure/makebuildenv.pl.in | |
parent | 16bfb3c7f6335d988ebf907ac823418a592f58e3 (diff) |
Fix system exit codes from tests, so we can use them in the shell.
I needed reliable exit codes to run the tests in a loop to catch an
intermittent failure.
Diffstat (limited to 'infrastructure/makebuildenv.pl.in')
-rwxr-xr-x | infrastructure/makebuildenv.pl.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/infrastructure/makebuildenv.pl.in b/infrastructure/makebuildenv.pl.in index fef9d348..0042c7a6 100755 --- a/infrastructure/makebuildenv.pl.in +++ b/infrastructure/makebuildenv.pl.in @@ -465,7 +465,7 @@ __E close FL; } - print TESTFILE "$runcmd\n"; + print TESTFILE "$runcmd\nexit_status=\$?\n"; if (-d "$module/testfiles") { @@ -474,6 +474,7 @@ kill_daemons __E } + print TESTFILE "exit \$exit_status\n"; close TESTFILE; } |