提交 cccae1a6 编写于 作者: S Steven Rostedt 提交者: Steven Rostedt

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: NSteven Rostedt <rostedt@goodmis.org>
上级 9be2e6b5
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册