diff --git a/test/e2e/configs/testpath.py b/test/e2e/configs/testpath.py index 92c4f9eab1..180906d135 100644 --- a/test/e2e/configs/testpath.py +++ b/test/e2e/configs/testpath.py @@ -12,7 +12,7 @@ TEST_VP: typing.Optional[SystemPath] = None TEST_ARTIFACTS: typing.Optional[SystemPath] = None # Test Directories -RUN_ID = os.getenv('RUN_DIR', f'run_{datetime.today().strftime("%Y-%m-%d %H:%M:%S")}') +RUN_ID = os.getenv('RUN_DIR', f'run_{datetime.today().strftime("%Y-%m-%d %H-%M-%S")}') RESULTS: SystemPath = ROOT / 'local_run_results' RUN: SystemPath = RESULTS / RUN_ID VP: SystemPath = ROOT / 'ext' / 'vp' diff --git a/test/e2e/conftest.py b/test/e2e/conftest.py index f32a3c4789..8ddb36bafa 100644 --- a/test/e2e/conftest.py +++ b/test/e2e/conftest.py @@ -61,7 +61,7 @@ def pytest_exception_interact(node): test_path, test_name, test_params = generate_test_info(node) node_dir: SystemPath = configs.testpath.RUN / test_path / test_name / test_params node_dir.mkdir(parents=True, exist_ok=True) - screenshot = node_dir / f'screenshot_{datetime.today().strftime("%Y-%m-%d %H:%M:%S")}.png' + screenshot = node_dir / f'screenshot_{datetime.today().strftime("%Y-%m-%d %H-%M-%S")}.png' ImageGrab.grab(xdisplay=configs.system.DISPLAY if IS_LIN else None).save(screenshot) allure.attach( name='Screenshot on fail',