summaryrefslogtreecommitdiff
path: root/src/dyetool/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-16 16:14:34 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-16 16:14:34 +0300
commitfb97eb9e75af62448ec57a45f35b13541db3188b (patch)
tree37d3adfa8c445de35bc504589bb149d328d21e8a /src/dyetool/client.cpp
parentc8c48c694acc69f949f95b99355ac2cdae66ab31 (diff)
downloadplus-fb97eb9e75af62448ec57a45f35b13541db3188b.tar.gz
plus-fb97eb9e75af62448ec57a45f35b13541db3188b.tar.bz2
plus-fb97eb9e75af62448ec57a45f35b13541db3188b.tar.xz
plus-fb97eb9e75af62448ec57a45f35b13541db3188b.zip
Dont do config backups if running tests.
Diffstat (limited to 'src/dyetool/client.cpp')
-rw-r--r--src/dyetool/client.cpp3
1 files changed, 2 insertions, 1 deletions
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();