From fb97eb9e75af62448ec57a45f35b13541db3188b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 16 Jun 2016 16:14:34 +0300 Subject: Dont do config backups if running tests. --- src/dyetool/client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dyetool') diff --git a/src/dyetool/client.cpp b/src/dyetool/client.cpp index b87f34aaa..8872aa134 100644 --- a/src/dyetool/client.cpp +++ b/src/dyetool/client.cpp @@ -163,7 +163,8 @@ void Client::gameInit() #ifdef USE_FUZZER Fuzzer::init(); #endif - ConfigManager::backupConfig("config.xml"); + if (settings.options.test.empty()) + ConfigManager::backupConfig("config.xml"); ConfigManager::initConfiguration(); paths.setDefaultValues(getPathsDefaults()); initPaths(); -- cgit v1.2.3-70-g09d2