Skip to content

Commit bd134d7

Browse files
committed
Add flags to disable certain classes of unit tests
Change-Id: Ib00b879d3abf0e356d502b8c374324be684670da
1 parent 1d9de77 commit bd134d7

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

python/manylinux1/build_arrow.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ for PYTHON in ${PYTHON_VERSIONS}; do
8080
echo "=== (${PYTHON}) Testing manylinux1 wheel ==="
8181
source /venv-test-${PYTHON}/bin/activate
8282
pip install repaired_wheels/*.whl
83-
py.test --parquet /venv-test-${PYTHON}/lib/*/site-packages/pyarrow
83+
84+
# ARROW-1264; for some reason the test case added causes a segfault inside
85+
# the Docker container when writing and error message to stderr
86+
py.test --parquet /venv-test-${PYTHON}/lib/*/site-packages/pyarrow -v -s --disable-plasma
8487
deactivate
8588

8689
mv repaired_wheels/*.whl /io/dist

python/pyarrow/tests/conftest.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ def pytest_addoption(parser):
5151
default=defaults[group],
5252
help=('Enable the {0} test group'.format(group)))
5353

54+
for group in groups:
55+
parser.addoption('--disable-{0}'.format(group), action='store_true',
56+
default=False,
57+
help=('Disable the {0} test group'.format(group)))
58+
5459
for group in groups:
5560
parser.addoption('--only-{0}'.format(group), action='store_true',
5661
default=False,
@@ -62,12 +67,14 @@ def pytest_runtest_setup(item):
6267

6368
for group in groups:
6469
only_flag = '--only-{0}'.format(group)
70+
disable_flag = '--disable-{0}'.format(group)
6571
flag = '--{0}'.format(group)
6672

6773
if item.config.getoption(only_flag):
6874
only_set = True
6975
elif getattr(item.obj, group, None):
70-
if not item.config.getoption(flag):
76+
if (item.config.getoption(disable_flag) or
77+
not item.config.getoption(flag)):
7178
skip('{0} NOT enabled'.format(flag))
7279

7380
if only_set:

0 commit comments

Comments
 (0)