You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/10/08 23:23:05 UTC

[GitHub] [beam] TheNeuralBit commented on a change in pull request #15693: [BEAM-12985] Call pytest directly rather than run_pytest.sh to avoid running pyarrow tests twice

TheNeuralBit commented on a change in pull request #15693:
URL: https://github.com/apache/beam/pull/15693#discussion_r725389522



##########
File path: sdks/python/tox.ini
##########
@@ -247,5 +247,6 @@ deps =
 commands =
   # Log pyarrow and numpy version for debugging
   /bin/sh -c "pip freeze | grep -E '(pyarrow|numpy)'"
-  # TODO(BEAM-12985): Running run_pytest.sh with -m causes us to run all the tests twice
-  {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '-m uses_pyarrow'
+  # Run pytest directly rather using run_pytest.sh. It doesn't handle
+  # selecting tests with -m (BEAM-12985)
+  pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_pyarrow

Review comment:
       Done.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org