Skip to content
Snippets Groups Projects
Commit 1d4f84b8 authored by Florent Thiery's avatar Florent Thiery
Browse files

improve results printing, refs #20589

parent 97342686
No related branches found
No related tags found
No related merge requests found
......@@ -36,9 +36,11 @@ for s in conf_servers:
d = requests.get(url, verify=False).text
if not "BEGIN PGP SIGNATURE" in d:
all_ok = False
print('Unexpected content: %s' % d)
print('%sUnexpected content: %s%s' % (RED, d, DEF))
else:
print('%sTest OK%s' % (GREEN, DEF))
except Exception:
print('Package mirror not working')
print('%sPackage mirror not working%s' % (RED, DEF))
all_ok = False
sys.exit(int(not all_ok))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment