2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-20 19:43:58 +08:00

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>
This commit is contained in:
Andrew Jones 2011-08-12 15:32:04 +02:00 committed by Steven Rostedt
parent a908a6659b
commit 134882311c

View File

@ -1272,16 +1272,16 @@ sub build {
# allow for empty configs # allow for empty configs
run_command "touch $output_config"; run_command "touch $output_config";
run_command "mv $output_config $outputdir/config_temp" or if (!$noclean) {
dodie "moving .config"; run_command "mv $output_config $outputdir/config_temp" or
dodie "moving .config";
if (!$noclean && !run_command "$make mrproper") { run_command "$make mrproper" or dodie "make mrproper";
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) { } elsif (!$noclean) {
unlink "$output_config"; unlink "$output_config";
run_command "$make mrproper" or run_command "$make mrproper" or