mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	soltest: force the use of the --testpath option for soltest with an explicit error.
This commit is contained in:
		
							parent
							
								
									032ea9bc5b
								
							
						
					
					
						commit
						1882c508c6
					
				| @ -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", | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user