Skip to content

Commit

Permalink
Fix pytest args splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed May 15, 2020
1 parent c271a61 commit 77a3554
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app_helper/pytest_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import absolute_import, print_function, unicode_literals

import os
import shlex


class PytestTestRunner(object):
Expand All @@ -19,7 +20,7 @@ def run_tests(self, test_labels):
"""
import pytest

argv = os.environ.get("PYTEST_ARGS", "").split(" ")
argv = shlex.split(os.environ.get("PYTEST_ARGS", ""))
if self.verbosity == 0:
argv.append("--quiet")
if self.verbosity == 2:
Expand Down
1 change: 1 addition & 0 deletions changes/155.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix pytest args splitting

0 comments on commit 77a3554

Please sign in to comment.