Removed pointer to external editor resource in IsolTestOptions, changed TestTool::handleResponse() to get editor value from m_options member variable

This commit is contained in:
hawkess
2021-09-21 14:12:26 -05:00
parent 5edabc014d
commit 4fd5093d94
3 changed files with 6 additions and 11 deletions
+2 -4
View File
@@ -56,20 +56,18 @@ std::string editorPath()
}
IsolTestOptions::IsolTestOptions(std::string* _editor):
IsolTestOptions::IsolTestOptions():
CommonOptions(description)
{
editor = _editor;
enforceViaYul = true;
enforceGasTest = (evmVersion() == langutil::EVMVersion{});
enforceGasTestMinValue = 100000;
}
void IsolTestOptions::addOptions()
{
CommonOptions::addOptions();
options.add_options()
("editor", po::value<std::string>(editor)->default_value(editorPath()), "Path to editor for opening test files.")
("editor", po::value<std::string>(&editor)->default_value(editorPath()), "Path to editor for opening test files.")
("help", po::bool_switch(&showHelp)->default_value(showHelp), "Show this help screen.")
("no-color", po::bool_switch(&noColor)->default_value(noColor), "Don't use colors.")
("accept-updates", po::bool_switch(&acceptUpdates)->default_value(acceptUpdates), "Automatically accept expectation updates.")