T7916298, bug fix

Summary: dbname => cmd_params['db']

Test Plan: Run `make crash_test`

Reviewers: sdong

Reviewed By: sdong

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D49077
main
Shusen Liu 9 years ago
parent 7717ad1afe
commit 033c6f1add
  1. 4
      tools/db_crashtest.py

@ -219,7 +219,7 @@ def blackbox_crash_main(args):
time.sleep(1) # time to stabilize before the next run
# we need to clean up after ourselves -- only do this on test success
shutil.rmtree(dbname, True)
shutil.rmtree(cmd_params['db'], True)
# This python script runs db_stress multiple times. Some runs with
@ -328,7 +328,7 @@ def whitebox_crash_main(args):
if time.time() > half_time:
# we need to clean up after ourselves -- only do this on test
# success
shutil.rmtree(dbname, True)
shutil.rmtree(cmd_params['db'], True)
check_mode = (check_mode + 1) % total_check_mode
time.sleep(1) # time to stabilize after a kill

Loading…
Cancel
Save