Skip to content

Commit bd90464

Browse files
authored
Merge pull request #2640 from NishantBansal2003/error_banner_fix
Removed error banner from tests (#2631)
2 parents 4ceac47 + d47e9f1 commit bd90464

File tree

331 files changed

+180
-840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

331 files changed

+180
-840
lines changed

run_tests.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def is_included(backend):
5656
"lpython --no-color --show-tokens {infile} -o {outfile}",
5757
filename,
5858
update_reference,
59-
extra_args)
59+
extra_args=extra_args)
6060

6161
if ast:
6262
run_test(
@@ -65,7 +65,7 @@ def is_included(backend):
6565
"lpython --show-ast --no-color {infile} -o {outfile}",
6666
filename,
6767
update_reference,
68-
extra_args)
68+
extra_args=extra_args)
6969

7070
if ast_new:
7171
run_test(
@@ -74,7 +74,7 @@ def is_included(backend):
7474
"lpython --show-ast --new-parser --no-color {infile} -o {outfile}",
7575
filename,
7676
update_reference,
77-
extra_args)
77+
extra_args=extra_args)
7878

7979
if asr:
8080
run_test(
@@ -83,7 +83,7 @@ def is_included(backend):
8383
"lpython --show-asr --no-color {infile} -o {outfile}",
8484
filename,
8585
update_reference,
86-
extra_args)
86+
extra_args=extra_args)
8787

8888
if asr_json:
8989
run_test(
@@ -92,7 +92,7 @@ def is_included(backend):
9292
"lpython --show-asr --json --no-color {infile} -o {outfile}",
9393
filename,
9494
update_reference,
95-
extra_args)
95+
extra_args=extra_args)
9696

9797
if pass_ is not None:
9898
cmd = "lpython "
@@ -103,7 +103,7 @@ def is_included(backend):
103103
cmd += "--pass=" + pass_ + \
104104
" --show-asr --no-color {infile} -o {outfile}"
105105
run_test(filename, "pass_{}".format(pass_), cmd,
106-
filename, update_reference, extra_args)
106+
filename, update_reference, extra_args=extra_args)
107107

108108
if no_llvm:
109109
log.info(f"{filename} * llvm SKIPPED as requested")
@@ -115,7 +115,7 @@ def is_included(backend):
115115
"lpython --no-color --show-llvm {infile} -o {outfile}",
116116
filename,
117117
update_reference,
118-
extra_args)
118+
extra_args=extra_args)
119119
if llvm_dbg:
120120
run_test(
121121
filename,
@@ -124,31 +124,31 @@ def is_included(backend):
124124
"{infile} -o {outfile}",
125125
filename,
126126
update_reference,
127-
extra_args)
127+
extra_args=extra_args)
128128

129129
if cpp:
130130
run_test(filename, "cpp", "lpython --no-color --show-cpp {infile}",
131-
filename, update_reference, extra_args)
131+
filename, update_reference, extra_args=extra_args)
132132

133133
if c:
134134
if disable_main:
135135
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)
137137
else:
138138
run_test(filename, "c", "lpython --no-color --show-c {infile}",
139-
filename, update_reference, extra_args)
139+
filename, update_reference, extra_args=extra_args)
140140

141141
if python:
142142
run_test(filename, "python", "lpython --no-color --show-python {infile}",
143-
filename, update_reference, extra_args)
143+
filename, update_reference, extra_args=extra_args)
144144

145145
if wat:
146146
run_test(filename, "wat", "lpython --no-color --show-wat {infile}",
147-
filename, update_reference, extra_args)
147+
filename, update_reference, extra_args=extra_args)
148148

149149
if run:
150150
run_test(filename, "runtime", "lpython {infile}",
151-
filename, update_reference, extra_args)
151+
filename, update_reference, extra_args=extra_args)
152152

153153
if run_with_dbg:
154154
if skip_run_with_dbg:
@@ -157,7 +157,7 @@ def is_included(backend):
157157
run_test(
158158
filename, "run_dbg",
159159
"lpython {infile} -g --debug-with-line-column --no-color",
160-
filename, update_reference, extra_args)
160+
filename, update_reference, extra_args=extra_args)
161161

162162
if __name__ == "__main__":
163163
tester_main("LPython", single_test)

tests/reference/asr-arrays_01-a617b64.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_01-a617b64.stderr",
11-
"stderr_hash": "69f8656cd4ab2b5cc8b1555c5b089c764a36a817023697e5314a7815",
11+
"stderr_hash": "b8317c7306f747ceefa8557c06f2a0b4a8a4bd7ae805bb494fca6ef2",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_01-a617b64.stderr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,3 @@ semantic error: Type mismatch in procedure call; the types must be compatible
66
|
77
9 | a : i8[4] = empty(4, dtype=int8)
88
| ^^^^^ type mismatch (passed argument type is list[i8] but required type is i8[4])
9-
10-
11-
Note: Please report unclear or confusing messages as bugs at
12-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_02-da94458.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_02-da94458.stderr",
11-
"stderr_hash": "15fc716bf5d58791fd20510131f51127e7e99d1e8fab7a8d01e3b008",
11+
"stderr_hash": "dc0e5be7cd6de7395421aedf1ce11977206f3e35bb7cba271aed8992",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_02-da94458.stderr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: The truth value of an array with more than one element is ambigu
33
|
44
28 | assert r1.a == t1.a
55
| ^^^^^^^^^^^^
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_03-de2e952.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_03-de2e952.stderr",
11-
"stderr_hash": "42cba9a2472dd0b8fd0d081f97bfb17615c8efbe56fdb3f4ff709e48",
11+
"stderr_hash": "4c932f31bbb10c9ba8d8d75be226ba9c33553be3bcb367c8112e31af",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_03-de2e952.stderr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
33
|
44
6 | x: i16[4] = empty([5], dtype=int16)
55
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[5]')
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_04-880407c.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_04-880407c.stderr",
11-
"stderr_hash": "40354354f9ae2e3eae5163f41ff6ce0298b5005bf4d13fd3e89cf48b",
11+
"stderr_hash": "10ef155b0236096d5de8157e38b3989d99343b016a8153b68a36aa54",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_04-880407c.stderr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ semantic error: Type mismatch in annotation-assignment, the types must be compat
33
|
44
6 | x: i16[5] = empty([5], dtype=int32)
55
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5]' and 'i32[5]')
6-
7-
8-
Note: Please report unclear or confusing messages as bugs at
9-
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_05-ec8fbd5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_05-ec8fbd5.stderr",
11-
"stderr_hash": "14eef4151e9c559cdcc637a009a39a4a965049d22f5393af3e83c5e1",
11+
"stderr_hash": "4e5d42a186b8d82b484ec66ccc5a3b90da7e4be8a32bac26ea906198",
1212
"returncode": 2
1313
}

0 commit comments

Comments
 (0)