Skip to content

Commit

Permalink
Differentiate build and test failures (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest authored May 23, 2019
1 parent 3ab8219 commit 76ada53
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions scripts/build/build.pl
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,15 @@
Dyninst::testsuite::build(\%args, $build_dir);
Dyninst::logs::write($fdLog, !$args{'quiet'}, "done\n");
}
}

}
};
if($@) {
Dyninst::logs::write($fdLog, !$args{'quiet'}, $@);
open my $fdOut, '>', "$root_dir/Build.FAILED";
$args{'run-tests'} = 0;
}

eval {
# Run the tests
if($args{'run-tests'}) {
make_path("$root_dir/testsuite/tests");
Expand All @@ -139,7 +146,7 @@
};
if($@) {
Dyninst::logs::write($fdLog, !$args{'quiet'}, $@);
open my $fdOut, '>', "$root_dir/FAILED";
open my $fdOut, '>', "$root_dir/Tests.FAILED";
}

my $results_log = "$root_dir/testsuite/tests/results.log";
Expand Down

0 comments on commit 76ada53

Please sign in to comment.