diff options
-rwxr-xr-x | tools/testing/ktest/ktest.pl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index e087cb411c9b..253e9a2cfbd5 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl | |||
@@ -2850,9 +2850,11 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) { | |||
2850 | 2850 | ||
2851 | chdir $builddir || die "can't change directory to $builddir"; | 2851 | chdir $builddir || die "can't change directory to $builddir"; |
2852 | 2852 | ||
2853 | if (!-d $tmpdir) { | 2853 | foreach my $dir ($tmpdir, $outputdir) { |
2854 | mkpath($tmpdir) or | 2854 | if (!-d $dir) { |
2855 | die "can't create $tmpdir"; | 2855 | mkpath($dir) or |
2856 | die "can't create $dir"; | ||
2857 | } | ||
2856 | } | 2858 | } |
2857 | 2859 | ||
2858 | $ENV{"SSH_USER"} = $ssh_user; | 2860 | $ENV{"SSH_USER"} = $ssh_user; |