Debian Codegraph @

debian/tests/upstream

raw
1 #!/bin/sh
2
3 set -e
4
5 # apparmor will interfere with tests. On armhf, this command might
6 # fail but the tests will still pass. See LP #1991141 for more
7 # details.
8 aa-disable slapd || true
9
10 if [ -z "${AUTOPKGTEST_NORMAL_USER}" ]; then
11 adduser --disabled-password --gecos "" test
12 AUTOPKGTEST_NORMAL_USER="test"
13 fi
14
15 chown "${AUTOPKGTEST_NORMAL_USER}" -R "${AUTOPKGTEST_TMP}"
16 runuser -u "${AUTOPKGTEST_NORMAL_USER}" -- cp -r tests ${AUTOPKGTEST_TMP}
17 cd ${AUTOPKGTEST_TMP}
18 for p in $(py3versions -s); do
19 runuser -u "${AUTOPKGTEST_NORMAL_USER}" -- $p -m django test --settings tests.settings
20 done