#445 [frontend] fix passing pytest parameters after 146761450
Merged 5 years ago by praiskup. Opened 5 years ago by frostyx.
copr/ frostyx/copr fix-fe-test-params  into  master

@@ -34,7 +34,7 @@ 

          else:

              os.environ['PYTHONPATH'] = '.'

  

-         additional_args = []

+         additional_args = test_args

  

          if coverage:

              additional_args.extend([

file modified
+1 -1
@@ -18,4 +18,4 @@ 

  export COPR_CONFIG="$(pwd)/coprs_frontend/config/copr_unit_test.conf"

  

  cd coprs_frontend

- ./manage.py test "$@"

+ ./manage.py test -a "$@"

Before the 1467614, it was possible to run run_tests.sh with
a positional parameter specifying a single test file, that should
be executed. It was also possible to pass keyword parameters like
-s to disable stdout/stderr capturing when using ipdb in tests, etc.

This commit provides the original functionality.

Thanks, I was facing similar issues today.

Pull-Request has been merged by praiskup

5 years ago