summaryrefslogtreecommitdiff
path: root/selftest/selftest.pl
diff options
context:
space:
mode:
Diffstat (limited to 'selftest/selftest.pl')
-rwxr-xr-xselftest/selftest.pl7
1 files changed, 2 insertions, 5 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index da25943957..93a3ca27a9 100755
--- a/selftest/selftest.pl
+++ b/selftest/selftest.pl
@@ -238,14 +238,11 @@ sub run_testsuite($$$$$)
my $exitcode = $ret >> 8;
Subunit::report_time(time());
- my $reason = "Exit code was $exitcode";
- my $result;
if ($exitcode == 0) {
- $result = "success";
+ Subunit::end_testsuite($name, "success");
} else {
- $result = "failure";
+ Subunit::end_testsuite($name, "failure", "Exit code was $exitcode");
}
- Subunit::end_testsuite($name, $result, $reason);
cleanup_pcap($pcap_file, $exitcode);