@@ -56,7 +56,7 @@ def is_included(backend):
56
56
"lpython --no-color --show-tokens {infile} -o {outfile}" ,
57
57
filename ,
58
58
update_reference ,
59
- extra_args )
59
+ extra_args = extra_args )
60
60
61
61
if ast :
62
62
run_test (
@@ -65,7 +65,7 @@ def is_included(backend):
65
65
"lpython --show-ast --no-color {infile} -o {outfile}" ,
66
66
filename ,
67
67
update_reference ,
68
- extra_args )
68
+ extra_args = extra_args )
69
69
70
70
if ast_new :
71
71
run_test (
@@ -74,7 +74,7 @@ def is_included(backend):
74
74
"lpython --show-ast --new-parser --no-color {infile} -o {outfile}" ,
75
75
filename ,
76
76
update_reference ,
77
- extra_args )
77
+ extra_args = extra_args )
78
78
79
79
if asr :
80
80
run_test (
@@ -83,7 +83,7 @@ def is_included(backend):
83
83
"lpython --show-asr --no-color {infile} -o {outfile}" ,
84
84
filename ,
85
85
update_reference ,
86
- extra_args )
86
+ extra_args = extra_args )
87
87
88
88
if asr_json :
89
89
run_test (
@@ -92,7 +92,7 @@ def is_included(backend):
92
92
"lpython --show-asr --json --no-color {infile} -o {outfile}" ,
93
93
filename ,
94
94
update_reference ,
95
- extra_args )
95
+ extra_args = extra_args )
96
96
97
97
if pass_ is not None :
98
98
cmd = "lpython "
@@ -103,7 +103,7 @@ def is_included(backend):
103
103
cmd += "--pass=" + pass_ + \
104
104
" --show-asr --no-color {infile} -o {outfile}"
105
105
run_test (filename , "pass_{}" .format (pass_ ), cmd ,
106
- filename , update_reference , extra_args )
106
+ filename , update_reference , extra_args = extra_args )
107
107
108
108
if no_llvm :
109
109
log .info (f"{ filename } * llvm SKIPPED as requested" )
@@ -115,7 +115,7 @@ def is_included(backend):
115
115
"lpython --no-color --show-llvm {infile} -o {outfile}" ,
116
116
filename ,
117
117
update_reference ,
118
- extra_args )
118
+ extra_args = extra_args )
119
119
if llvm_dbg :
120
120
run_test (
121
121
filename ,
@@ -124,31 +124,31 @@ def is_included(backend):
124
124
"{infile} -o {outfile}" ,
125
125
filename ,
126
126
update_reference ,
127
- extra_args )
127
+ extra_args = extra_args )
128
128
129
129
if cpp :
130
130
run_test (filename , "cpp" , "lpython --no-color --show-cpp {infile}" ,
131
- filename , update_reference , extra_args )
131
+ filename , update_reference , extra_args = extra_args )
132
132
133
133
if c :
134
134
if disable_main :
135
135
run_test (filename , "c" , "lpython --no-color --disable-main --show-c {infile}" ,
136
- filename , update_reference , extra_args )
136
+ filename , update_reference , extra_args = extra_args )
137
137
else :
138
138
run_test (filename , "c" , "lpython --no-color --show-c {infile}" ,
139
- filename , update_reference , extra_args )
139
+ filename , update_reference , extra_args = extra_args )
140
140
141
141
if python :
142
142
run_test (filename , "python" , "lpython --no-color --show-python {infile}" ,
143
- filename , update_reference , extra_args )
143
+ filename , update_reference , extra_args = extra_args )
144
144
145
145
if wat :
146
146
run_test (filename , "wat" , "lpython --no-color --show-wat {infile}" ,
147
- filename , update_reference , extra_args )
147
+ filename , update_reference , extra_args = extra_args )
148
148
149
149
if run :
150
150
run_test (filename , "runtime" , "lpython {infile}" ,
151
- filename , update_reference , extra_args )
151
+ filename , update_reference , extra_args = extra_args )
152
152
153
153
if run_with_dbg :
154
154
if skip_run_with_dbg :
@@ -157,7 +157,7 @@ def is_included(backend):
157
157
run_test (
158
158
filename , "run_dbg" ,
159
159
"lpython {infile} -g --debug-with-line-column --no-color" ,
160
- filename , update_reference , extra_args )
160
+ filename , update_reference , extra_args = extra_args )
161
161
162
162
if __name__ == "__main__" :
163
163
tester_main ("LPython" , single_test )
0 commit comments