Use env variable to get IPC path for isoltest

This commit is contained in:
Mathias Baumann
2019-02-21 13:27:24 +01:00
parent 27d936cf44
commit f4110b295b
4 changed files with 11 additions and 9 deletions
+3 -1
View File
@@ -336,6 +336,7 @@ int main(int argc, char *argv[])
bool disableIPC = false;
bool disableSMT = false;
bool formatted = true;
po::options_description options(
R"(isoltest, tool for interactively managing test contracts.
Usage: isoltest [Options] --ipcpath ipcpath
@@ -344,6 +345,7 @@ Interactively validates test contracts.
Allowed options)",
po::options_description::m_default_line_length,
po::options_description::m_default_line_length - 23);
options.add_options()
("help", "Show this help screen.")
("testpath", po::value<fs::path>(&testPath), "path to test files")
@@ -396,7 +398,7 @@ Allowed options)",
}
if (testPath.empty())
testPath = dev::test::discoverTestPath();
testPath = dev::test::getTestPath();
TestStats global_stats{0, 0};