提交 13488231 编写于 作者: A Andrew Jones 提交者: Steven Rostedt

ktest: Only need to save .config when doing mrproper

Only save the .config file if we're doing mrproper
Signed-off-by: NAndrew Jones <drjones@redhat.com>
Link: http://lkml.kernel.org/r/1313155932-20092-3-git-send-email-drjones@redhat.comSigned-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 a908a665
......@@ -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";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册