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 15390cc commit 20910d1
Showing 1 changed file with 2 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

0 comments on commit 20910d1

Please sign in to comment.