#!/bin/sh export PYTHONWARNINGS=d python3_all="$(py3versions -s 2>/dev/null)" TESTS_TO_EXCLUDE="\ not test_capture_pane \ and not test_server_new_session_info_logging \ and not test_session_attach_does_not_fail_if_session_killed_during_attach[session_killed_during_attach_should_not_raise] \ and not test_capture_pane_end \ and not test_first_pane_start_directory \ and not test_get_test_session_name_loop_behavior \ and not test_get_test_session_name_implementation_details \ and not test_new_session_start_directory[relative_path] \ and not test_new_session_start_directory_pathlib \ and not test_new_window_name_colon_period_accepted \ 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] \ and not test_window_display_message_flags \ " 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