File: upstream

package info (click to toggle)
cachelib 0.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 428 kB
  • sloc: python: 1,555; makefile: 32; sh: 15
file content (23 lines) | stat: -rwxr-xr-x 600 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -eu

# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034128
service memcached stop

trap "service memcached restart" EXIT

if [ -z "${AUTOPKGTEST_NORMAL_USER}" ]; then
    adduser --quiet --disabled-login --gecos '' cachelib
    AUTOPKGTEST_NORMAL_USER=cachelib
fi
chown "${AUTOPKGTEST_NORMAL_USER}:" "${AUTOPKGTEST_TMP}"

pyvers=$(py3versions --supported 2>/dev/null)

cp -a tests "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"

for py in ${pyvers}; do
    echo "=== $py ==="
    runuser -u "${AUTOPKGTEST_NORMAL_USER}" -- $py -m pytest -k 'not test_dynamodb and not test_mongodb'
done