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:
parent
d1fbd7e6a6
commit
9be2e6b590
|
@ -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]"};
|
||||
|
|
Loading…
Reference in New Issue