Skip to content

Commit

Permalink
Use PYTEST_ARGS to define module to test
Browse files Browse the repository at this point in the history
  • Loading branch information
raulcd committed Jun 19, 2024
1 parent a264453 commit 2d9bf92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions ci/scripts/python_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,4 @@ export PYARROW_TEST_PARQUET_ENCRYPTION
export PYARROW_TEST_S3

# Testing PyArrow
if [ -z "${TEST_COMMAND}" ]; then
pytest -r s ${PYTEST_ARGS} --pyargs pyarrow
else
${TEST_COMMAND}
fi
pytest -r s ${PYTEST_ARGS} --pyargs ${PYTEST_PYARGS:-'pyarrow'}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ services:
PARQUET_REQUIRE_ENCRYPTION: # inherit
# In the future we are supposed to run all tests.
# This is only temporary.
TEST_COMMAND: "pytest -r s --pyargs pyarrow.tests.test_array"
PYTEST_PYARGS: "pyarrow.tests.test_array"
HYPOTHESIS_PROFILE: # inherit
PYARROW_TEST_HYPOTHESIS: # inherit
volumes: *conda-volumes
Expand Down

0 comments on commit 2d9bf92

Please sign in to comment.