File: test

package info (click to toggle)
patroni 4.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,704 kB
  • sloc: python: 29,743; sh: 573; makefile: 29
file content (16 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

export LC_ALL=C.UTF-8
export LANG=C.UTF-8
export TZ=UTC # suppress UnknownTimeZoneError('Etc/UTC',)

# clean up afterwards
trap 'rm -f /tmp/pgpass?' 0 2 3 15

python3 -m pytest tests

# in case this script is run as root, remove the top-level data directory so
# that subsequent tests can potentially created it again as another user
rm -rf data