diff options
author | Andrew Jones <drjones@redhat.com> | 2011-08-12 09:32:03 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-10-17 11:54:10 -0400 |
commit | a908a6659ba3e7eb52ea74a78e2f342978aa5f5b (patch) | |
tree | 3ae1693889f0fa88441356fd40d3c74c8af81e93 /tools | |
parent | cd8e368f475251c0e3c42203f21e68fa25afbb3d (diff) |
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>
Diffstat (limited to 'tools')
-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; |