Skip to content

Commit 1348823

Browse files
Andrew Jonesrostedt
authored andcommitted
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>
1 parent a908a66 commit 1348823

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎tools/testing/ktest/ktest.pl‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,15 +1272,15 @@ sub build {
12721272
# allow for empty configs
12731273
run_command "touch $output_config";
12741274

1275-
run_command "mv $output_config $outputdir/config_temp" or
1276-
dodie "moving .config";
1275+
if (!$noclean) {
1276+
run_command "mv $output_config $outputdir/config_temp" or
1277+
dodie "moving .config";
12771278

1278-
if (!$noclean && !run_command "$make mrproper") {
1279-
dodie "make mrproper";
1280-
}
1279+
run_command "$make mrproper" or dodie "make mrproper";
12811280

1282-
run_command "mv $outputdir/config_temp $output_config" or
1283-
dodie "moving config_temp";
1281+
run_command "mv $outputdir/config_temp $output_config" or
1282+
dodie "moving config_temp";
1283+
}
12841284

12851285
} elsif (!$noclean) {
12861286
unlink "$output_config";

0 commit comments

Comments
 (0)