Skip to content

Commit 9a4e031

Browse files
committed
πŸš‘πŸ› Fix segfault by moving tests off Git checkout
1 parent d1d4bee commit 9a4e031

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

β€Žtravis/build-manylinux1-wheels.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ export PYTHONDONTWRITEBYTECODE=1
2828

2929
SRC_DIR=/io
3030
GIT_GLOBAL_ARGS="--git-dir=${SRC_DIR}/.git --work-tree=${SRC_DIR}"
31-
TESTS_DIR="${SRC_DIR}/test"
31+
TESTS_SRC_DIR="${SRC_DIR}/test"
3232
BUILD_DIR=`mktemp -d "/tmp/${DIST_NAME}-manylinux1-build.XXXXXXXXXX"`
33+
TESTS_DIR="${BUILD_DIR}/test"
3334
STATIC_DEPS_PREFIX="${BUILD_DIR}/static-deps"
3435
LIBGIT2_CLONE_DIR="${BUILD_DIR}/libgit2"
3536
LIBGIT2_BUILD_DIR="${LIBGIT2_CLONE_DIR}/build"
@@ -275,12 +276,16 @@ done
275276
>&2 echo Running test suite against wheels:
276277
>&2 echo ==================================
277278
>&2 echo
279+
cp -v ${SRC_DIR}/pytest.ini ${BUILD_DIR}/
280+
cp -vr ${TESTS_SRC_DIR} ${TESTS_DIR}
281+
pushd "${BUILD_DIR}"
278282
for PY_BIN in /opt/python/*/bin/python; do
279283
cleanup_garbage
280284
$PY_BIN -B -m pip install --no-compile pytest
281285
$PY_BIN -B -m pytest "${TESTS_DIR}" &
282286
done
283287
wait
288+
popd
284289

285290
>&2 echo
286291
>&2 echo

0 commit comments

Comments
Β (0)