print test finished before loading db

This commit is contained in:
Jude Nelson
2017-04-05 11:21:50 -04:00
parent 9a7cba4497
commit 468cf1fd5f

View File

@@ -590,16 +590,15 @@ def run_scenario( scenario, config_file, client_config_file, interactive=False,
if rc == False:
# explicitly erred
log.error("Scenario exits in error")
blockstack_client.rpc.local_api_stop(client_config_dir)
log.error("Failed to run tests '%s'" % scenario.__name__)
shutdown_procedure()
return False
log.info("\n\nTest finished; doing checks\n\n")
db = blockstackd.get_db_state(disposition=blockstackd.DISPOSITION_RW)
testlib.set_state_engine(db)
log.info("\n\nTest finished; doing checks\n\n")
# run the checks on the database
try:
rc = scenario.check( db )