@@ -21,93 +21,93 @@ def migrate_test(single_case_text):
2121
2222 call_subprocess (test_config .CT_TOOL + " --autocomplete=--gen-build" , single_case_text )
2323 reference = '--gen-build-script\n '
24- res = res and (reference == single_case_text .command_text )
24+ res = res and (reference == single_case_text .print_text )
2525
2626 call_subprocess (test_config .CT_TOOL + " --autocomplete=-gen-build" , single_case_text )
2727 reference = '-gen-build-script\n '
28- res = res and (reference == single_case_text .command_text )
28+ res = res and (reference == single_case_text .print_text )
2929
3030 call_subprocess (test_config .CT_TOOL + " --autocomplete=foo" )
3131 reference = '\n '
32- res = res and (reference == single_case_text .command_text )
32+ res = res and (reference == single_case_text .print_text )
3333
3434 call_subprocess (test_config .CT_TOOL + " --autocomplete=--output-verbosity=#d" , single_case_text )
3535 reference = 'detailed\n ' + \
3636 'diagnostics\n '
37- res = res and (reference == single_case_text .command_text )
37+ res = res and (reference == single_case_text .print_text )
3838
3939 call_subprocess (test_config .CT_TOOL + " --autocomplete=-output-verbosity=#d" , single_case_text )
4040 reference = 'detailed\n ' + \
4141 'diagnostics\n '
42- res = res and (reference == single_case_text .command_text )
42+ res = res and (reference == single_case_text .print_text )
4343
4444 call_subprocess (test_config .CT_TOOL + " --autocomplete=--output-verbosity=" , single_case_text )
4545 reference = 'detailed\n ' + \
4646 'diagnostics\n ' + \
4747 'normal\n ' + \
4848 'silent\n '
49- res = res and (reference == single_case_text .command_text )
49+ res = res and (reference == single_case_text .print_text )
5050
5151 call_subprocess (test_config .CT_TOOL + " --autocomplete=-output-verbosity=" , single_case_text )
5252 reference = 'detailed\n ' + \
5353 'diagnostics\n ' + \
5454 'normal\n ' + \
5555 'silent\n '
56- res = res and (reference == single_case_text .command_text )
56+ res = res and (reference == single_case_text .print_text )
5757
5858 call_subprocess (test_config .CT_TOOL + " --autocomplete=foo#bar##--enable-c" , single_case_text )
5959 reference = '--enable-ctad\n '
60- res = res and (reference == single_case_text .command_text )
60+ res = res and (reference == single_case_text .print_text )
6161
6262 call_subprocess (test_config .CT_TOOL + " --autocomplete=foo#bar###--format-range=#a" , single_case_text )
6363 reference = 'all\n '
64- res = res and (reference == single_case_text .command_text )
64+ res = res and (reference == single_case_text .print_text )
6565
6666 call_subprocess (test_config .CT_TOOL + " --autocomplete=--rule-file=" , single_case_text )
6767 reference = '\n '
68- res = res and (reference == single_case_text .command_text )
68+ res = res and (reference == single_case_text .print_text )
6969
7070 call_subprocess (test_config .CT_TOOL + " --autocomplete=--rule-file" , single_case_text )
7171 reference = '--rule-file\n '
72- res = res and (reference == single_case_text .command_text )
72+ res = res and (reference == single_case_text .print_text )
7373
7474 call_subprocess (test_config .CT_TOOL + " --autocomplete=-p=" , single_case_text )
7575 reference = '\n '
76- res = res and (reference == single_case_text .command_text )
76+ res = res and (reference == single_case_text .print_text )
7777
7878 call_subprocess (test_config .CT_TOOL + " --autocomplete=-p" , single_case_text )
7979 reference = '-p\n ' + \
8080 '-process-all\n '
81- res = res and (reference == single_case_text .command_text )
81+ res = res and (reference == single_case_text .print_text )
8282
8383 call_subprocess (test_config .CT_TOOL + " --autocomplete=--usm-level=#none,restricted#--use-explicit-namespace=#cl,sycl," , single_case_text )
8484 reference = 'cl,sycl,cl\n ' + \
8585 'cl,sycl,dpct\n ' + \
8686 'cl,sycl,none\n ' + \
8787 'cl,sycl,sycl\n ' + \
8888 'cl,sycl,sycl-math\n '
89- res = res and (reference == single_case_text .command_text )
89+ res = res and (reference == single_case_text .print_text )
9090
9191 call_subprocess (test_config .CT_TOOL + " --autocomplete=--usm-level=#none,restricted#--use-explicit-namespace=#cl,sycl,s" , single_case_text )
9292 reference = 'cl,sycl,sycl\n ' + \
9393 'cl,sycl,sycl-math\n '
94- res = res and (reference == single_case_text .command_text )
94+ res = res and (reference == single_case_text .print_text )
9595
9696 call_subprocess (test_config .CT_TOOL + " --autocomplete=" , single_case_text )
9797 reference = '\n '
98- res = res and (reference == single_case_text .command_text )
98+ res = res and (reference == single_case_text .print_text )
9999
100100 call_subprocess (test_config .CT_TOOL + " --autocomplete=," , single_case_text )
101101 reference = '\n '
102- res = res and (reference == single_case_text .command_text )
102+ res = res and (reference == single_case_text .print_text )
103103
104104 call_subprocess (test_config .CT_TOOL + " --autocomplete==" , single_case_text )
105105 reference = '\n '
106- res = res and (reference == single_case_text .command_text )
106+ res = res and (reference == single_case_text .print_text )
107107
108108 call_subprocess (test_config .CT_TOOL + " --autocomplete=,," , single_case_text )
109109 reference = '\n '
110- res = res and (reference == single_case_text .command_text )
110+ res = res and (reference == single_case_text .print_text )
111111
112112 call_subprocess (test_config .CT_TOOL + " --autocomplete=-" , single_case_text )
113113 opts = ['--always-use-async-handler\n ' ,
@@ -152,15 +152,15 @@ def migrate_test(single_case_text):
152152 '--version\n ' ,
153153 '-p\n ' ]
154154 for opt in opts :
155- res = res and (opt in single_case_text .command_text )
155+ res = res and (opt in single_case_text .print_text )
156156
157157 call_subprocess (test_config .CT_TOOL + " --autocomplete=##" , single_case_text )
158158 reference = '\n '
159- res = res and (reference == single_case_text .command_text )
159+ res = res and (reference == single_case_text .print_text )
160160
161161 call_subprocess (test_config .CT_TOOL + " --autocomplete=#" , single_case_text )
162162 reference = '\n '
163- res = res and (reference == single_case_text .command_text )
163+ res = res and (reference == single_case_text .print_text )
164164
165165 return res
166166
0 commit comments