diff options
| author | Andrew Jones <[email protected]> | 2011-08-12 15:32:04 +0200 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2011-10-17 11:54:10 -0400 |
| commit | 134882311cb9c2dca2ffadeabc5f8f9faa0fca81 (patch) | |
| tree | b50cf2b29660a9777cdcc8257a40677d65a9f4ec | |
| parent | a908a6659ba3e7eb52ea74a78e2f342978aa5f5b (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 <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Steven Rostedt <[email protected]>
| -rwxr-xr-x | tools/testing/ktest/ktest.pl | 14 |
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 { # allow for empty configs run_command "touch $output_config"; - run_command "mv $output_config $outputdir/config_temp" or - dodie "moving .config"; + if (!$noclean) { + run_command "mv $output_config $outputdir/config_temp" or + dodie "moving .config"; - if (!$noclean && !run_command "$make mrproper") { - dodie "make mrproper"; - } + run_command "$make mrproper" or dodie "make mrproper"; - run_command "mv $outputdir/config_temp $output_config" or - dodie "moving config_temp"; + run_command "mv $outputdir/config_temp $output_config" or + dodie "moving config_temp"; + } } elsif (!$noclean) { unlink "$output_config"; |