summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/testing/ktest/ktest.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index de99b82d16ad..112f9ca2444b 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -1635,6 +1635,11 @@ sub dodie {
print " See $opt{LOG_FILE} for more info.\n";
}
+ # Fatal paths bypass fail(), so STORE_FAILURES needs to be handled here.
+ if (defined($store_failures)) {
+ save_logs("fail", $store_failures);
+ }
+
if ($email_on_error) {
my $name = get_test_name;
my $log_file;