chore: remove semicolon from the paths files to make windows happy
This commit is contained in:
parent
c67785100b
commit
469d527cf0
|
@ -12,7 +12,7 @@ TEST_VP: typing.Optional[SystemPath] = None
|
||||||
TEST_ARTIFACTS: typing.Optional[SystemPath] = None
|
TEST_ARTIFACTS: typing.Optional[SystemPath] = None
|
||||||
|
|
||||||
# Test Directories
|
# 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'
|
RESULTS: SystemPath = ROOT / 'local_run_results'
|
||||||
RUN: SystemPath = RESULTS / RUN_ID
|
RUN: SystemPath = RESULTS / RUN_ID
|
||||||
VP: SystemPath = ROOT / 'ext' / 'vp'
|
VP: SystemPath = ROOT / 'ext' / 'vp'
|
||||||
|
|
|
@ -61,7 +61,7 @@ def pytest_exception_interact(node):
|
||||||
test_path, test_name, test_params = generate_test_info(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: SystemPath = configs.testpath.RUN / test_path / test_name / test_params
|
||||||
node_dir.mkdir(parents=True, exist_ok=True)
|
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)
|
ImageGrab.grab(xdisplay=configs.system.DISPLAY if IS_LIN else None).save(screenshot)
|
||||||
allure.attach(
|
allure.attach(
|
||||||
name='Screenshot on fail',
|
name='Screenshot on fail',
|
||||||
|
|
Loading…
Reference in New Issue