Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel faigon <github.2009@yendor.com>2014-08-24 01:21:41 +0400
committerariel faigon <github.2009@yendor.com>2014-08-24 01:21:41 +0400
commit478f3076d4512aba0f142de036e0ca4a7f0dd39c (patch)
tree17993e5005a1cb036f23fb7e24c8aab2814c3607 /test/RunTests
parent22bc163c9477d3fe66c15f49692139ab9e028c54 (diff)
Add another print just before we exit with a failure that doesn't seem to propagate to 'make' and travis.
Diffstat (limited to 'test/RunTests')
-rwxr-xr-xtest/RunTests9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/RunTests b/test/RunTests
index 04e8e8c4..b3d55f9c 100755
--- a/test/RunTests
+++ b/test/RunTests
@@ -99,6 +99,8 @@ sub mysystem {
sub command_failed($) {
# Deal with cases where vw crashes, exits prematurely etc.
+ # print a message to distinguish between all cases
+ # return non-zero status if anything is bad
my $cmd = shift;
if ($?) {
my $exitcode = $? >> 8;
@@ -606,9 +608,12 @@ sub run_tests() {
my $full_status = $?;
my $status = $full_status >> 8;
unless ($opt_V) {
- if (command_failed($cmd)) {
+ if (my $failure = command_failed($cmd)) {
print STDERR `$Cat $errf`;
- exit $full_status if ($opt_e);
+ if ($opt_e) {
+ printf STDERR "$0: exiting with status=$failure\n";
+ exit $failure;
+ }
next;
}
}