File: get_test_exclusions

package info (click to toggle)
debugpy 1.8.19%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,452 kB
  • sloc: python: 14,840; sh: 185; makefile: 33
file content (138 lines) | stat: -rwxr-xr-x 6,624 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#! /bin/bash

# This script is called from both debian/rules and from the
# autopkgtest suite.

interpreter=$1
arch=$(dpkg --print-architecture)

# These tests fail inconsistently, for some unknown reason
EXCLUDES=(
    "tests/debugpy/test_attach.py::test_attach_pid_client[program-int]"
    "tests/debugpy/test_attach.py::test_attach_pid_client[program-str]"
    "tests/debugpy/test_multiproc.py::test_subprocess_with_parent_pid"
)

# Some tests fail on non-amd64/i386 archs
case $arch in
    s390x|ppc64)
	if [ $interpreter = python3.11 ]
	then
	    EXCLUDES+=(
		"tests/debugpy/test_attach.py::test_attach_api"
		"tests/debugpy/test_attach.py::test_reattach"
		"tests/debugpy/test_breakpoints.py::test_break_api[launch-breakpoint-module]"
		"tests/debugpy/test_breakpoints.py::test_break_api[launch-breakpoint-program]"
		"tests/debugpy/test_evaluate.py::test_set_variable[program-launch]"
		"tests/debugpy/test_evaluate.py::test_unicode[program-launch]"
		"tests/debugpy/test_system_info.py::test_debugpySystemInfo[program-launch]"
		"tests/debugpy/test_threads.py::test_debug_this_thread[program-launch]"
		"tests/debugpy/test_tracing.py::test_tracing[program-launch]"
	    )
	fi
	;;

    loong64)
	EXCLUDES+=(
	    "tests/debugpy/test_args.py::test_args"
	    "tests/debugpy/test_exception.py::test_success_exitcodes"
	    "tests/debugpy/test_exception.py::test_systemexit"
	    "tests/debugpy/test_input.py::test_input[program--attach_pid]"
	    "tests/debugpy/test_input.py::test_input[program-redirect_output-attach_pid]"
	    "tests/debugpy/test_input.py::test_stdin_not_patched[program--attach_pid]"
	    "tests/debugpy/test_input.py::test_stdin_not_patched[program-redirect_output-attach_pid]"
	    "tests/debugpy/test_log.py::test_log_dir_env[code-attach_pid]"
	    "tests/debugpy/test_log.py::test_log_dir_env[module-attach_pid]"
	    "tests/debugpy/test_log.py::test_log_dir_env[program-attach_pid]"
	    "tests/debugpy/test_output.py::test_redirect_output"
	    "tests/debugpy/test_output.py::test_with_no_output[program-attach_pid]"
	    "tests/debugpy/test_run.py::test_frame_eval"
	    "tests/debugpy/test_run.py::test_run"
	)
	;;

    sparc64)
	EXCLUDES+=(
	    "tests/debugpy/test_args.py::test_args"
	    "tests/debugpy/test_exception.py::test_success_exitcodes"
	    "tests/debugpy/test_exception.py::test_systemexit"
	    "tests/debugpy/test_input.py::test_input"
	    "tests/debugpy/test_input.py::test_stdin_not_patched"
	    "tests/debugpy/test_log.py::test_log_dir_env"
	    "tests/debugpy/test_output.py::test_redirect_output"
	    "tests/debugpy/test_output.py::test_with_no_output[program-attach_pid]"
	    "tests/debugpy/test_run.py::test_frame_eval"
	    "tests/debugpy/test_run.py::test_run"
	)
	if [ $interpreter = python3.11 ]
	then
	    EXCLUDES+=(
		"tests/debugpy/test_attach.py::test_attach_api"
		"tests/debugpy/test_attach.py::test_reattach"
		"tests/debugpy/test_breakpoints.py::test_break_api"
		"tests/debugpy/test_evaluate.py::test_set_variable[program-launch]"
		"tests/debugpy/test_evaluate.py::test_unicode[program-launch]"
		"tests/debugpy/test_system_info.py::test_debugpySystemInfo[program-launch]"
		"tests/debugpy/test_threads.py::test_debug_this_thread[program-launch]"
		"tests/debugpy/test_tracing.py::test_tracing[program-launch]"
	    )
	fi
	;;

    riscv64)
	EXCLUDES+=(
	    "tests/debugpy/common/test_messaging.py::TestJsonMessageChannel::test_fuzz"
	    "tests/debugpy/test_args.py::test_args"
	    "tests/debugpy/test_args.py::test_shell_expansion[expand-launch(console=externalTerminal)-module]"
	    "tests/debugpy/test_attach.py/test_attach_api[--pause]/Session[1]"
	    "tests/debugpy/test_attach.py::test_attach_pid_client[program-int]"
	    "tests/debugpy/test_attach.py::test_reattach"
	    "tests/debugpy/test_breakpoints.py::test_break_api[attach_connect(cli)-breakpoint-program]"
	    "tests/debugpy/test_breakpoints.py::test_conditional_breakpoint"
	    "tests/debugpy/test_completions.py::test_completions_scope[program-launch-done]"
	    "tests/debugpy/test_env.py::test_env_replace_var[program-launch(console=integratedTerminal)-match_case-None]"
	    "tests/debugpy/test_evaluate.py::test_return_values[program-launch-show]"
	    "tests/debugpy/test_evaluate.py::test_set_variable[program-launch]"
	    "tests/debugpy/test_evaluate.py::test_variable_sort[program-launch]"
	    "tests/debugpy/test_exception.py/test_systemexit[0-zero-uncaught--attach_listen(api)-module]"
	    "tests/debugpy/test_exception.py::test_raise_exception_options"
	    "tests/debugpy/test_exception.py::test_success_exitcodes"
	    "tests/debugpy/test_exception.py::test_systemexit"
	    "tests/debugpy/test_exclude_rules.py::test_exceptions_and_partial_exclude_rules[module-launch-exclude_callback_dir]"
	    "tests/debugpy/test_input.py::test_stdin_not_patched[program--launch(console=externalTerminal)]"
	    "tests/debugpy/test_log.py::test_log_dir_env[module-attach_pid] - debug..."
	    "tests/debugpy/test_multiproc.py::test_argv_quoting[program-launch]"
	    "tests/debugpy/test_output.py::test_redirect_output[program-enabled-attach_pid]"
	    "tests/debugpy/test_output.py::test_with_no_output[program-attach_pid]"
	    "tests/debugpy/test_run.py/test_frame_eval[yes-code-attach_listen(cli)]"
	    "tests/debugpy/test_run.py::test_custom_python_args"
	    "tests/debugpy/test_run.py::test_frame_eval"
	    "tests/debugpy/test_run.py::test_run"
	    "tests/debugpy/test_stop_on_entry.py::test_stop_on_entry[program-launch(console=externalTerminal)-]"
	    "tests/tests/test_timeline.py::test_occurrences"
	)
	;;

    alpha)
	EXCLUDES+=(
	    "tests/debugpy/common/test_messaging.py::TestJsonMessageChannel::test_fuzz"
	    "tests/debugpy/test_env.py::test_env_replace_var[program-launch(console=integratedTerminal)-match_case-None]"
	    "tests/debugpy/test_exception.py::test_success_exitcodes"
	    "tests/debugpy/test_exception.py::test_systemexit"
	    "tests/debugpy/test_exclude_rules.py::test_exceptions_and_partial_exclude_rules[program-launch-exclude_code_to_debug]"
	    "tests/debugpy/test_multiproc.py::test_subprocess[program-attach_connect(api)--None]"
	    "tests/debugpy/test_multiproc.py::test_subprocess[program-attach_connect(cli)-startDebugging-True]"
	    "tests/debugpy/test_run.py::test_custom_python_args[program-pythonPath-custompy,-O-None-launch(console=integratedTerminal)]"
	    "tests/debugpy/test_run.py::test_custom_python_args[program-pythonPath-custompy,-O-None-launch(console=internalConsole)]"
	)
	;;
    *)
	;;
esac

DESELECTS=()
for test in "${EXCLUDES[@]}"
do
    DESELECTS+=("--deselect=$test")
done
echo ${DESELECTS[*]}