| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e -u |
| 4 |
|
| 5 |
cp -a tests conftest.py "${AUTOPKGTEST_TMP}" |
| 6 |
|
| 7 |
# Some tests are which are not successful in the autopkgtest could be excluded |
| 8 |
# here. |
| 9 |
PYTEST_OPTIONS="" |
| 10 |
|
| 11 |
for py3vers in $(py3versions -s); do |
| 12 |
echo |
| 13 |
echo "***************************" |
| 14 |
echo "*** Testing with ${py3vers}" |
| 15 |
echo "***************************" |
| 16 |
echo |
| 17 |
cd ${AUTOPKGTEST_TMP} && \ |
| 18 |
echo "Content of current working folder:\n" && \ |
| 19 |
ls -la && \ |
| 20 |
echo "Running tests...\n" && \ |
| 21 |
${py3vers} -m pytest "${PYTEST_OPTIONS}" && \ |
| 22 |
rm -rf .pytest_cache || exit 1 |
| 23 |
done |
| 24 |
|
| 25 |
echo |
| 26 |
|
| 27 |
exit 0 |