Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13488231 authored by Andrew Jones's avatar Andrew Jones Committed by Steven Rostedt
Browse files

ktest: Only need to save .config when doing mrproper



Only save the .config file if we're doing mrproper

Signed-off-by: default avatarAndrew Jones <drjones@redhat.com>
Link: http://lkml.kernel.org/r/1313155932-20092-3-git-send-email-drjones@redhat.com


Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent a908a665
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -1272,15 +1272,15 @@ sub build {
	# allow for empty configs
	run_command "touch $output_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";
	}

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