Commit cccae1a62a81dc8e32bf787024fdcf7ef71f1285
Committed by
Steven Rostedt
1 parent
9be2e6b590
Exists in
master
and in
4 other branches
ktest: Parse off the directory name in useconfig for failures
When we store failures, we create a directory that has the build_type in it. For useconfig, it also contains the name path of the config file it uses. This unfortunately gets its own directory on failure. Parse off the directory name when creating the directory to store the failures. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Showing 1 changed file with 6 additions and 1 deletions Side-by-side Diff
tools/testing/ktest/ktest.pl
... | ... | @@ -398,7 +398,12 @@ |
398 | 398 | my $date = sprintf "%04d%02d%02d%02d%02d%02d", |
399 | 399 | 1900+$t[5],$t[4],$t[3],$t[2],$t[1],$t[0]; |
400 | 400 | |
401 | - my $dir = "$machine-$test_type-$build_type-fail-$date"; | |
401 | + my $type = $build_type; | |
402 | + if ($type =~ /useconfig/) { | |
403 | + $type = "useconfig"; | |
404 | + } | |
405 | + | |
406 | + my $dir = "$machine-$test_type-$type-fail-$date"; | |
402 | 407 | my $faildir = "$store_failures/$dir"; |
403 | 408 | |
404 | 409 | if (!-d $faildir) { |