Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Commit

Permalink
Fix to test execution in order to handle changes made to initial allo…
Browse files Browse the repository at this point in the history
…cations to delegates in genesis.json file (now tests rely on committed json file instead of regenerating a new json file on each test run).
  • Loading branch information
dnotestein committed Jun 24, 2014
1 parent 87ce9b9 commit 22c273c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/wallet_tests.cpp
Expand Up @@ -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";
Expand Down

0 comments on commit 22c273c

Please sign in to comment.