diff options
author | chriseth <chris@ethereum.org> | 2018-03-14 18:42:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-14 18:42:41 +0800 |
commit | a5d9b05acbcbfadeb4c956f70db6f24cf226ed46 (patch) | |
tree | a4a8c6e09083a5008ec07cd645ee5b3390f8cae9 | |
parent | 032ea9bc5ba0e0d46deb2620934500071f31e3de (diff) | |
parent | 1882c508c6d3ef46847ba23d06689ea17b01ccb5 (diff) | |
download | dexon-solidity-a5d9b05acbcbfadeb4c956f70db6f24cf226ed46.tar.gz dexon-solidity-a5d9b05acbcbfadeb4c956f70db6f24cf226ed46.tar.zst dexon-solidity-a5d9b05acbcbfadeb4c956f70db6f24cf226ed46.zip |
Merge pull request #3731 from ethereum/errorNoTestPath
soltest: force the use of the --testpath option for soltest with an e…
-rw-r--r-- | test/boostTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/boostTest.cpp b/test/boostTest.cpp index e557ff95..8ad97db3 100644 --- a/test/boostTest.cpp +++ b/test/boostTest.cpp @@ -55,6 +55,10 @@ test_suite* init_unit_test_suite( int /*argc*/, char* /*argv*/[] ) { master_test_suite_t& master = framework::master_test_suite(); master.p_name.value = "SolidityTests"; + solAssert( + !dev::test::Options::get().testPath.empty(), + "No test path specified. The --testpath argument is required." + ); solAssert(dev::solidity::test::SyntaxTest::registerTests( master, dev::test::Options::get().testPath / "libsolidity", |