Skip to content

Commit

Permalink
ktest: Parse off the directory name in useconfig for failures
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Nov 18, 2010
1 parent 9be2e6b commit cccae1a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,12 @@ sub fail {
my $date = sprintf "%04d%02d%02d%02d%02d%02d",
1900+$t[5],$t[4],$t[3],$t[2],$t[1],$t[0];

my $dir = "$machine-$test_type-$build_type-fail-$date";
my $type = $build_type;
if ($type =~ /useconfig/) {
$type = "useconfig";
}

my $dir = "$machine-$test_type-$type-fail-$date";
my $faildir = "$store_failures/$dir";

if (!-d $faildir) {
Expand Down

0 comments on commit cccae1a

Please sign in to comment.