Skip to content

Commit 4f0a1a9

Browse files
author
Davide Moro
committed
ensure jenkins build marked as failed if one test fail
1 parent 386de22 commit 4f0a1a9

File tree

1 file changed

+3
-6
lines changed
  • {{cookiecutter.project_slug}}

1 file changed

+3
-6
lines changed

{{cookiecutter.project_slug}}/ci.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
from shlex import quote
88
except ImportError:
99
from pipes import quote
10-
try:
11-
from subprocess import run
12-
except ImportError: # py2
13-
from subprocess import call as run
10+
11+
from subprocess import check_call
1412

1513

1614
def prettify_path(path):
@@ -115,5 +113,4 @@ def prettify_path(path):
115113
parallel_sessions,
116114
])
117115

118-
print(str(pytest_cmd))
119-
run(split(" ".join(pytest_cmd)))
116+
check_call(split(" ".join(pytest_cmd)))

0 commit comments

Comments
 (0)