Files
scylladb/test/pytest
Avi Kivity e5e7780f32 test: work around modern pytest rejecting site-packages
Modern (as of Fedora 37) pytest has the "-sP" flags in the Python command
line, as found in /usr/bin/pytest. This means it will reject the
site-packages directory, where we install the Scylla Python driver. This
causes all the tests to fail.

Work around it by supplying an alternative pytest script that does not
have this change.

Closes #11764
2022-10-17 07:18:33 +03:00

8 lines
147 B
Bash
Executable File

#!/bin/sh -e
# Modern pytest excludes site-packages, so it doesn't see scylla-driver.
# This script is a workaround.
exec python -m pytest "$@"