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>
This commit is contained in:
parent
cd8e368f47
commit
a908a6659b
@ -2850,9 +2850,11 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) {
|
|||||||
|
|
||||||
chdir $builddir || die "can't change directory to $builddir";
|
chdir $builddir || die "can't change directory to $builddir";
|
||||||
|
|
||||||
if (!-d $tmpdir) {
|
foreach my $dir ($tmpdir, $outputdir) {
|
||||||
mkpath($tmpdir) or
|
if (!-d $dir) {
|
||||||
die "can't create $tmpdir";
|
mkpath($dir) or
|
||||||
|
die "can't create $dir";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$ENV{"SSH_USER"} = $ssh_user;
|
$ENV{"SSH_USER"} = $ssh_user;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user