Skip to content

Commit a908a66

Browse files
Andrew Jonesrostedt
authored andcommitted
ktest: Create outputdir if it does not exist
Signed-off-by: Andrew Jones <drjones@redhat.com> Link: http://lkml.kernel.org/r/1313155932-20092-2-git-send-email-drjones@redhat.com Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent cd8e368 commit a908a66

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎tools/testing/ktest/ktest.pl‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2850,9 +2850,11 @@ sub set_test_option {
28502850

28512851
chdir $builddir || die "can't change directory to $builddir";
28522852

2853-
if (!-d $tmpdir) {
2854-
mkpath($tmpdir) or
2855-
die "can't create $tmpdir";
2853+
foreach my $dir ($tmpdir, $outputdir) {
2854+
if (!-d $dir) {
2855+
mkpath($dir) or
2856+
die "can't create $dir";
2857+
}
28562858
}
28572859

28582860
$ENV{"SSH_USER"} = $ssh_user;

0 commit comments

Comments
 (0)