提交 9be2e6b5 编写于 作者: S Steven Rostedt 提交者: Steven Rostedt

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: NSteven Rostedt <rostedt@goodmis.org>
上级 d1fbd7e6
...@@ -1735,9 +1735,9 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) { ...@@ -1735,9 +1735,9 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) {
$minconfig = $addconfig; $minconfig = $addconfig;
} elsif (defined($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"; dodie "Failed to create temp config";
$minconfig = "$tmpdir/use_config"; $minconfig = "$tmpdir/add_config";
} }
my $checkout = $opt{"CHECKOUT[$i]"}; my $checkout = $opt{"CHECKOUT[$i]"};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册