summaryrefslogtreecommitdiff
path: root/tests/functional/features
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2017-07-20 15:31:56 +0200
committerRuben Pollan <meskio@sindominio.net>2017-07-20 21:23:17 +0200
commitf6ff8482c14ad49c6ee77c4d7918520a0013c132 (patch)
treecf27beba525184e60e38ee765b44f29b1ee9e6c2 /tests/functional/features
parentbd24e2024ad29fa72cae661ac5898cad4ace8e8b (diff)
[test] keep artifacts inside the project dir
Diffstat (limited to 'tests/functional/features')
-rw-r--r--tests/functional/features/environment.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/functional/features/environment.py b/tests/functional/features/environment.py
index b88ddd79..ae72b496 100644
--- a/tests/functional/features/environment.py
+++ b/tests/functional/features/environment.py
@@ -10,7 +10,7 @@ from selenium.webdriver.chrome.options import Options
from leap.common.config import get_path_prefix
DEFAULT_IMPLICIT_WAIT_TIMEOUT_IN_S = 10
-HOME_PATH = '/tmp/bitmask-test'
+HOME_PATH = os.path.abspath('./tmp/bitmask-test')
def before_all(context):
@@ -78,9 +78,8 @@ def _save_config(context, step):
def _artifact_path(step, filename=''):
- string = 'failed {}'.format(str(step.name))
- slug = re.sub('\W', '-', string)
- return os.path.join(HOME_PATH, 'artifacts', slug, filename)
+ slug = re.sub('\W', '-', str(step.name))
+ return os.path.abspath(os.path.join('failures', slug, filename))
def _debug_on_error(context, step):