2021-12-16 11:50:12 +00:00
|
|
|
import os
|
|
|
|
|
2022-01-07 16:03:53 +00:00
|
|
|
|
2021-12-16 11:50:12 +00:00
|
|
|
def get_artifact(fname):
|
|
|
|
"""
|
|
|
|
Return the artifact path in the artifact folder
|
|
|
|
"""
|
2022-01-07 16:08:46 +00:00
|
|
|
fpath = os.path.join(get_artifact_folder(), fname)
|
2021-12-16 11:50:12 +00:00
|
|
|
if os.path.isfile(fpath):
|
|
|
|
return fpath
|
|
|
|
return
|
|
|
|
|
2022-01-07 16:03:53 +00:00
|
|
|
|
2021-12-16 11:50:12 +00:00
|
|
|
def get_artifact_folder():
|
|
|
|
return os.path.join(os.path.dirname(__file__), "artifacts")
|
|
|
|
|
2022-01-07 16:03:53 +00:00
|
|
|
|
2022-01-07 16:08:46 +00:00
|
|
|
def get_backup_folder():
|
|
|
|
return os.path.join(os.path.dirname(__file__), "artifacts", "ios_backup")
|
|
|
|
|
2022-01-07 16:51:21 +00:00
|
|
|
def get_indicator_file():
|
|
|
|
print("PYTEST env", os.getenv('PYTEST_CURRENT_TEST'))
|