File: pytest

package info (click to toggle)
python-libtmux 0.53.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,700 kB
  • sloc: python: 10,602; makefile: 199; sh: 39
file content (38 lines) | stat: -rwxr-xr-x 1,093 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh

export PYTHONWARNINGS=d

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

TESTS_TO_EXCLUDE="\
  not test_capture_pane \
  and not test_capture_pane_end \
  and not test_first_pane_start_directory \
  and not test_new_session_start_directory[relative_path] \
  and not test_new_session_start_directory_pathlib \
  and not test_new_window_start_directory[relative_path] \
  and not test_new_window_start_directory_pathlib \
  and not test_new_window_with_direction \
  and not test_new_window_with_environment[single_env_var] \
  and not test_new_window_with_environment[multiple_env_vars] \
  and not test_pytest_plugin \
  and not test_retry_three_times_no_raise_assert \
  and not test_session_new_window_with_direction \
  and not test_split_start_directory_pathlib \
  and not test_split_start_directory[relative_path] \
  and not test_split_with_environment[multiple_env_vars] \
"

cp -r tests $AUTOPKGTEST_TMP
cd "$AUTOPKGTEST_TMP"

rm -fr tests/legacy_api

ret=0

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

exit $ret