Update python sample code (#12681)

This commit is contained in:
Isaac A. Murchie
2019-05-23 09:37:40 -04:00
committed by GitHub
parent 240810d028
commit eb4ddafc36
15 changed files with 215 additions and 147 deletions

View File

@@ -6,10 +6,9 @@ from helpers import ensure_dir
def pytest_configure(config):
if not hasattr(config, 'slaveinput'):
if not hasattr(config, 'input'):
current_day = '{:%Y_%m_%d_%H_%S}'.format(datetime.datetime.now())
ensure_dir('results')
ensure_dir(os.path.join('slaveinput', current_day))
ensure_dir(os.path.join(os.path.dirname(__file__), 'input', current_day))
result_dir = os.path.join(os.path.dirname(__file__), 'results', current_day)
ensure_dir(result_dir)
result_dir_test_run = result_dir