From: Alice Akaki Date: Tue, 1 Nov 2022 05:05:00 +0000 (-0400) Subject: run.py: Add dir in the output X-Git-Tag: suricata-6.0.13~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1217%2Fhead;p=thirdparty%2Fsuricata-verify.git run.py: Add dir in the output These changes were based on Blithe Brandon's PR #344 Task: #3144 --- diff --git a/run.py b/run.py index 4779aaa37..8f8d8ead4 100755 --- a/run.py +++ b/run.py @@ -770,7 +770,11 @@ class TestRunner: if not check_value["failure"] and not check_value["skipped"]: if not self.quiet: - print("===> %s: OK%s" % (os.path.basename(self.directory), " (%dx)" % count if count > 1 else "")) + if os.path.basename(os.path.dirname(self.directory)) != "tests": + path_name = os.path.join(os.path.basename(os.path.dirname(self.directory)), self.name) + else: + path_name = (os.path.basename(self.directory)) + print("===> %s: OK%s" % (path_name, " (%dx)" % count if count > 1 else "")) elif not check_value["failure"]: if not self.quiet: print("===> {}: OK (checks: {}, skipped: {})".format(os.path.basename(self.directory), sum(check_value.values()), check_value["skipped"]))