mirror of
https://github.com/uutils/coreutils
synced 2024-11-05 14:21:32 +00:00
remaining-gnu-error.py: split SKIP & ERROR
This commit is contained in:
parent
137fb4b0b5
commit
a1a136650b
1 changed files with 16 additions and 6 deletions
|
@ -19,7 +19,8 @@ urllib.request.urlretrieve(
|
|||
types = ("/*/*.sh", "/*/*.pl", "/*/*.xpl")
|
||||
|
||||
tests = []
|
||||
error_or_skip_tests = []
|
||||
error_tests = []
|
||||
skip_tests = []
|
||||
|
||||
for files in types:
|
||||
tests.extend(glob.glob(base + files))
|
||||
|
@ -58,14 +59,23 @@ for d in data:
|
|||
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:")
|
||||
|
|
Loading…
Reference in a new issue