dect
/
linux-2.6
Archived
13
0
Fork 0

ktest: Use different temp config name for minconfig

By using the "use_config" for minconfig and addconfig we risk
trying to copy itself to itself, which will cause an unexpected failure.

Use a different name instead.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
Steven Rostedt 2010-11-09 12:20:21 -05:00 committed by Steven Rostedt
parent d1fbd7e6a6
commit 9be2e6b590
1 changed files with 2 additions and 2 deletions

View File

@ -1735,9 +1735,9 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) {
$minconfig = $addconfig;
} elsif (defined($addconfig)) {
run_command "cat $addconfig $minconfig > $tmpdir/use_config" or
run_command "cat $addconfig $minconfig > $tmpdir/add_config" or
dodie "Failed to create temp config";
$minconfig = "$tmpdir/use_config";
$minconfig = "$tmpdir/add_config";
}
my $checkout = $opt{"CHECKOUT[$i]"};