aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-11-09 12:21:32 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-11-18 11:23:12 -0500
commitcccae1a62a81dc8e32bf787024fdcf7ef71f1285 (patch)
tree749d366760852398e58bf634c176efcd6a78dfee /tools
parent9be2e6b590b5d9cb6d6e38b6362a552bbcb118e0 (diff)
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>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/ktest/ktest.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index a7a74f015ef3..52e45b8551e8 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -398,7 +398,12 @@ sub fail {
398 my $date = sprintf "%04d%02d%02d%02d%02d%02d", 398 my $date = sprintf "%04d%02d%02d%02d%02d%02d",
399 1900+$t[5],$t[4],$t[3],$t[2],$t[1],$t[0]; 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 my $faildir = "$store_failures/$dir"; 407 my $faildir = "$store_failures/$dir";
403 408
404 if (!-d $faildir) { 409 if (!-d $faildir) {