File: pytest

package info (click to toggle)
tmuxp 1.62.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,800 kB
  • sloc: python: 7,989; makefile: 202; sh: 21
file content (24 lines) | stat: -rwxr-xr-x 450 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
24
#!/bin/sh

export PYTHONWARNINGS=d

python3_all="$(py3versions -s 2>/dev/null)"

TESTS_TO_EXCLUDE="\
  not test_automatic_rename_option \
  and not test_environment_variables \
  and not test_load_zsh_autotitle_warning \
  and not test_window_shell \
"

cp -r conftest.py examples tests $AUTOPKGTEST_TMP
cd "$AUTOPKGTEST_TMP"

ret=0

for py in $python3_all; do
    echo "=== $py ==="
    $py -m pytest -k "$TESTS_TO_EXCLUDE" || ret=1
done

exit $ret