File: upstream

package info (click to toggle)
django-auth-ldap 5.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 464 kB
  • sloc: python: 2,599; makefile: 23; sh: 12
file content (20 lines) | stat: -rw-r--r-- 602 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

# apparmor will interfere with tests.  On armhf, this command might
# fail but the tests will still pass.  See LP #1991141 for more
# details.
aa-disable slapd || true

if [ -z "${AUTOPKGTEST_NORMAL_USER}" ]; then
    adduser --disabled-password --gecos "" test
    AUTOPKGTEST_NORMAL_USER="test"
fi

chown "${AUTOPKGTEST_NORMAL_USER}" -R "${AUTOPKGTEST_TMP}"
runuser -u "${AUTOPKGTEST_NORMAL_USER}" -- cp -r tests ${AUTOPKGTEST_TMP}
cd ${AUTOPKGTEST_TMP}
for p in $(py3versions -s); do
    runuser -u "${AUTOPKGTEST_NORMAL_USER}" -- $p -m django test --settings tests.settings
done