| 1 | #!/bin/sh |
| 2 | |
| 3 | export PYTHONWARNINGS=d |
| 4 | |
| 5 | python3_all="$(py3versions -s 2>/dev/null)" |
| 6 | |
| 7 | TESTS_TO_EXCLUDE="\ |
| 8 | not test_capture_pane \ |
| 9 | and not test_server_new_session_info_logging \ |
| 10 | and not test_session_attach_does_not_fail_if_session_killed_during_attach[session_killed_during_attach_should_not_raise] \ |
| 11 | and not test_capture_pane_end \ |
| 12 | and not test_first_pane_start_directory \ |
| 13 | and not test_get_test_session_name_loop_behavior \ |
| 14 | and not test_get_test_session_name_implementation_details \ |
| 15 | and not test_new_session_start_directory[relative_path] \ |
| 16 | and not test_new_session_start_directory_pathlib \ |
| 17 | and not test_new_window_name_colon_period_accepted \ |
| 18 | and not test_new_window_start_directory[relative_path] \ |
| 19 | and not test_new_window_start_directory_pathlib \ |
| 20 | and not test_new_window_with_direction \ |
| 21 | and not test_new_window_with_environment[single_env_var] \ |
| 22 | and not test_new_window_with_environment[multiple_env_vars] \ |
| 23 | and not test_pytest_plugin \ |
| 24 | and not test_retry_three_times_no_raise_assert \ |
| 25 | and not test_session_new_window_with_direction \ |
| 26 | and not test_split_start_directory_pathlib \ |
| 27 | and not test_split_start_directory[relative_path] \ |
| 28 | and not test_split_with_environment[multiple_env_vars] \ |
| 29 | and not test_window_display_message_flags \ |
| 30 | " |
| 31 | |
| 32 | cp -r tests $AUTOPKGTEST_TMP |
| 33 | cd "$AUTOPKGTEST_TMP" |
| 34 | |
| 35 | rm -fr tests/legacy_api |
| 36 | |
| 37 | ret=0 |
| 38 | |
| 39 | for py in $python3_all; do |
| 40 | echo "=== $py ===" |
| 41 | $py -m pytest -k "$TESTS_TO_EXCLUDE" || ret=1 |
| 42 | done |
| 43 | |
| 44 | exit $ret |