mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #4626 from sylvestre/python-error-mmgt
manage an potential error in util/remaining-gnu-error.py when GNU isn't up to date
This commit is contained in:
commit
71228f98e1
1 changed files with 7 additions and 2 deletions
|
@ -8,6 +8,7 @@ import urllib
|
||||||
import os
|
import os
|
||||||
import glob
|
import glob
|
||||||
import json
|
import json
|
||||||
|
import sys
|
||||||
|
|
||||||
base = "../gnu/tests/"
|
base = "../gnu/tests/"
|
||||||
urllib.request.urlretrieve(
|
urllib.request.urlretrieve(
|
||||||
|
@ -51,10 +52,14 @@ for d in data:
|
||||||
|
|
||||||
# the tests pass, we don't care anymore
|
# the tests pass, we don't care anymore
|
||||||
if data[d][e] == "PASS":
|
if data[d][e] == "PASS":
|
||||||
list_of_files.remove(a)
|
try:
|
||||||
|
list_of_files.remove(a)
|
||||||
|
except ValueError:
|
||||||
|
print("Could not find test '%s'. Maybe update the GNU repo?" % a)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
# if it is SKIP or ERROR, show it
|
# if it is SKIP or ERROR, show it
|
||||||
if data[d][e] == "SKIP" or data[d][e] == "ERROR":
|
if data[d][e] in ("SKIP", "ERROR"):
|
||||||
list_of_files.remove(a)
|
list_of_files.remove(a)
|
||||||
error_or_skip_tests.append(a)
|
error_or_skip_tests.append(a)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue