Skip to content

Commit

Permalink
ktest: Create outputdir if it does not exist
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Jones authored and Steven Rostedt committed Oct 17, 2011
1 parent cd8e368 commit a908a66
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2850,9 +2850,11 @@ sub set_test_option {

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

if (!-d $tmpdir) {
mkpath($tmpdir) or
die "can't create $tmpdir";
foreach my $dir ($tmpdir, $outputdir) {
if (!-d $dir) {
mkpath($dir) or
die "can't create $dir";
}
}

$ENV{"SSH_USER"} = $ssh_user;
Expand Down

0 comments on commit a908a66

Please sign in to comment.