With check-eve it makes more sense to print the full filename
being tested rather than just the test name. As it is possible
that more than the expected eve.json is being tested.
if isDirectory:
json_filename = os.path.join(dirpath, 'eve.json')
- testname = dirpath
- if "suricata-verify" in dirpath:
- testname = os.path.basename(os.path.dirname(dirpath))
-
status = "OK"
errors = []
if not args.quiet:
if status == "FAIL":
- print("===> %s: FAIL " % testname)
+ print("===> %s: FAIL " % json_filename)
for err in errors:
print(err)
elif args.verbose:
- print("===> %s: OK " % testname)
+ print("===> %s: OK " % json_filename)
return status