瀏覽代碼

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>
Steven Rostedt 14 年之前
父節點
當前提交
9be2e6b590
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tools/testing/ktest/ktest.pl

+ 2 - 2
tools/testing/ktest/ktest.pl

@@ -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]"};