Skip to content

Commit

Permalink
Fix pytest args splitting (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky authored May 15, 2020
1 parent 4c51c98 commit 83b5547
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 83b5547

Please sign in to comment.