Skip to content

Commit

Permalink
Merge pull request #4863 from sylvestre/split
Browse files Browse the repository at this point in the history
remaining-gnu-error.py: split SKIP & ERROR
  • Loading branch information
cakebaker authored May 16, 2023
2 parents 137fb4b + a1a1366 commit 21b9cf8
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions util/remaining-gnu-error.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
types = ("/*/*.sh", "/*/*.pl", "/*/*.xpl")

tests = []
error_or_skip_tests = []
error_tests = []
skip_tests = []

for files in types:
tests.extend(glob.glob(base + files))
Expand Down Expand Up @@ -58,14 +59,23 @@ def show_list(l):
print("Could not find test '%s'. Maybe update the GNU repo?" % a)
sys.exit(1)

# if it is SKIP or ERROR, show it
if data[d][e] in ("SKIP", "ERROR"):
# if it is SKIP, show it
if data[d][e] == "SKIP":
list_of_files.remove(a)
error_or_skip_tests.append(a)
skip_tests.append(a)

# if it is ERROR, show it
if data[d][e] == "ERROR":
list_of_files.remove(a)
error_tests.append(a)

print("SKIP and ERROR tests:")
show_list(error_or_skip_tests)
print("===============")
print("SKIP tests:")
show_list(skip_tests)
print("")
print("===============")
print("ERROR tests:")
show_list(error_tests)
print("")
print("===============")
print("FAIL tests:")
Expand Down

0 comments on commit 21b9cf8

Please sign in to comment.