Skip to content

Commit

Permalink
ktest: Only need to save .config when doing mrproper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Jones authored and Steven Rostedt committed Oct 17, 2011
1 parent a908a66 commit 1348823
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 1348823

Please sign in to comment.