chore: better dirs naming
This commit is contained in:
parent
40530954db
commit
0848301498
|
@ -10,3 +10,4 @@ tmp/
|
|||
|
||||
*.DS_Store
|
||||
|
||||
/local run results/
|
||||
|
|
|
@ -12,9 +12,8 @@ TEST_VP: typing.Optional[SystemPath] = None
|
|||
TEST_ARTIFACTS: typing.Optional[SystemPath] = None
|
||||
|
||||
# Test Directories
|
||||
RUN_ID = os.getenv('RUN_DIR', f'run_{datetime.now():%d%m%Y_%H%M%S}')
|
||||
TEMP: SystemPath = ROOT / 'tmp'
|
||||
RESULTS: SystemPath = TEMP / 'results'
|
||||
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'
|
||||
TEST_FILES: SystemPath = ROOT / 'ext' / 'test_files'
|
||||
|
|
|
@ -7,7 +7,7 @@ from PIL import ImageGrab
|
|||
|
||||
import configs
|
||||
import driver
|
||||
from os import path
|
||||
import shortuuid
|
||||
from datetime import datetime
|
||||
from configs.system import IS_LIN
|
||||
from driver import context
|
||||
|
@ -32,7 +32,7 @@ class AUT:
|
|||
self.pid = None
|
||||
self.port = None
|
||||
self.aut_id = f'AUT_{datetime.now():%H%M%S}'
|
||||
self.app_data = configs.testpath.STATUS_DATA / f'app_{datetime.now():%H%M%S_%f}'
|
||||
self.app_data = configs.testpath.STATUS_DATA / f'app_{shortuuid.ShortUUID().random(length=10)}'
|
||||
if user_data is not None:
|
||||
user_data.copy_to(self.app_data / 'data')
|
||||
self.options = ''
|
||||
|
|
|
@ -11,3 +11,4 @@ pyperclip==1.8.2
|
|||
pytest-rerunfailures==13.0
|
||||
pytest-ignore-flaky==2.1.0
|
||||
pytest-timeout==2.2.0
|
||||
shortuuid==1.0.12
|
||||
|
|
Loading…
Reference in New Issue