From 2ad3bcaa739fd0a5846fa3c9472c1e180e4b72cd Mon Sep 17 00:00:00 2001 From: Alice Akaki Date: Tue, 1 Nov 2022 01:05:00 -0400 Subject: [PATCH] run.py: Add dir in the output These changes were based on Blithe Brandon's PR #344 Task: #3144 --- run.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"])) -- 2.47.2