aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorAndrew Jones <drjones@redhat.com>2011-08-12 09:32:04 -0400
committerSteven Rostedt <rostedt@goodmis.org>2011-10-17 11:54:10 -0400
commit134882311cb9c2dca2ffadeabc5f8f9faa0fca81 (patch)
treeb50cf2b29660a9777cdcc8257a40677d65a9f4ec /tools/testing
parenta908a6659ba3e7eb52ea74a78e2f342978aa5f5b (diff)
ktest: Only need to save .config when doing mrproper
Only save the .config file if we're doing mrproper Signed-off-by: Andrew Jones <drjones@redhat.com> Link: http://lkml.kernel.org/r/1313155932-20092-3-git-send-email-drjones@redhat.com Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing')
-rwxr-xr-xtools/testing/ktest/ktest.pl14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 253e9a2cfbd5..20b0e736b98b 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -1272,15 +1272,15 @@ sub build {
1272 # allow for empty configs 1272 # allow for empty configs
1273 run_command "touch $output_config"; 1273 run_command "touch $output_config";
1274 1274
1275 run_command "mv $output_config $outputdir/config_temp" or 1275 if (!$noclean) {
1276 dodie "moving .config"; 1276 run_command "mv $output_config $outputdir/config_temp" or
1277 dodie "moving .config";
1277 1278
1278 if (!$noclean && !run_command "$make mrproper") { 1279 run_command "$make mrproper" or dodie "make mrproper";
1279 dodie "make mrproper";
1280 }
1281 1280
1282 run_command "mv $outputdir/config_temp $output_config" or 1281 run_command "mv $outputdir/config_temp $output_config" or
1283 dodie "moving config_temp"; 1282 dodie "moving config_temp";
1283 }
1284 1284
1285 } elsif (!$noclean) { 1285 } elsif (!$noclean) {
1286 unlink "$output_config"; 1286 unlink "$output_config";