Skip to content

Commit b73041b

Browse files
committed
Propagate exit code from pytest so ci systems can pick up errors
1 parent b6722c5 commit b73041b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demosys/management/commands/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ def handle(self, *args, **options):
3030
if options.get('module'):
3131
sys.argv.append(options.get('module'))
3232

33-
pytest.main()
33+
exit_code = pytest.main()
34+
sys.exit(exit_code)

0 commit comments

Comments
 (0)