test: Fixed CommandlineTestSuite changed TestSettings.xml
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
/bin/test/data/log/
|
||||
/bin/test/data/temp.xml
|
||||
/bin/test/data/TestSettings.xml
|
||||
/bin/test/data/CommandlineTestSuite/settings.xml
|
||||
|
||||
/java_indexer/target/
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ ReturnStatus CommandConfig::parse(std::vector<std::string>& args)
|
||||
}
|
||||
}
|
||||
|
||||
settings->save(UserPaths::getAppSettingsPath());
|
||||
settings->save();
|
||||
|
||||
return ReturnStatus::CMD_QUIT;
|
||||
}
|
||||
|
||||
@@ -9,15 +9,16 @@
|
||||
|
||||
class CommandlineTestSuite: public CxxTest::TestSuite
|
||||
{
|
||||
|
||||
public:
|
||||
void setUp()
|
||||
{
|
||||
m_appSettingsPath = ApplicationSettings::getInstance()->getFilePath();
|
||||
ApplicationSettings::getInstance()->load(FilePath("data/CommandlineTestSuite/settings.xml"));
|
||||
}
|
||||
|
||||
void tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
void setUp()
|
||||
{
|
||||
ApplicationSettings::getInstance()->load(m_appSettingsPath);
|
||||
}
|
||||
|
||||
void test_commandline_version()
|
||||
@@ -139,5 +140,5 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
FilePath m_appSettingsPath;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user