From 22c273c89ee8a2f51d14ffde804cf8bc816a6521 Mon Sep 17 00:00:00 2001 From: dnotestein Date: Tue, 24 Jun 2014 14:54:00 -0400 Subject: [PATCH] Fix to test execution in order to handle changes made to initial allocations to delegates in genesis.json file (now tests rely on committed json file instead of regenerating a new json file on each test run). --- tests/wallet_tests.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/wallet_tests.cpp b/tests/wallet_tests.cpp index d14f8f6cb..f74da6569 100644 --- a/tests/wallet_tests.cpp +++ b/tests/wallet_tests.cpp @@ -472,12 +472,17 @@ void run_regression_test(fc::path test_dir, bool with_network) try { std::cout << "*** Executing " << test_dir.string() << std::endl; + boost::filesystem::current_path(test_dir.string()); //create a small genesis block to reduce test startup time - fc::temp_directory temp_dir; - fc::path genesis_json_file = temp_dir.path() / "genesis.json"; - create_genesis_block(genesis_json_file); + //fc::temp_directory temp_dir; + //fc::path genesis_json_file = temp_dir.path() / "genesis.json"; + //create_genesis_block(genesis_json_file); + //DLN: now we just used the genesis file already committed to repo, update it + // using "-t make_genesis_block" if desired. + fc::path genesis_json_file = "../../test_genesis.json"; + //open test configuration file (contains one line per client to create) fc::path test_config_file_name = "test.config";