test_runner: Write database ids to file for reference in clean up.

The ids that will be used for each particular run of the test suite are
written to a unique file. Each file will then be used as a time
reference of when the suite was ran.

This change sets up the ability for a complete clean up of potentially
leaked database templates.

Tweaked by tabbott to remove these files after successful database
cleanup.
This commit is contained in:
Wyatt Hoodes
2019-06-11 06:36:27 -10:00
committed by Tim Abbott
parent 900d9d3e49
commit 0b05d91e62
2 changed files with 23 additions and 0 deletions

View File

@@ -145,6 +145,7 @@ if __name__ == '__main__':
if cmd == 'make_deploy_path':
print(make_deploy_path())
TEMPLATE_DATABASE_DIR = "test-backend/databases"
def get_dev_uuid_var_path(create_if_missing=False):
# type: (bool) -> str
zulip_path = get_deploy_root()