You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2026/05/26 20:56:45 UTC
(allura) 29/33: [#8607] ./run_tests QoL: show final message, allow trailing slash for tab-complete of suites
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch db/8607
in repository https://gitbox.apache.org/repos/asf/allura.git
commit c209d7707aa77f10198743528253bc67d0c1bdb3
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Fri May 22 16:55:05 2026 -0400
[#8607] ./run_tests QoL: show final message, allow trailing slash for tab-complete of suites
---
run_tests | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/run_tests b/run_tests
index d51f436a0..e69bb2fd9 100755
--- a/run_tests
+++ b/run_tests
@@ -215,10 +215,17 @@ def parse_args():
parser.add_argument(
'-p', help='List of packages to run tests on. Default: all',
dest='packages', choices=get_packages(), default=get_packages(),
+ type=lambda s: s.rstrip('/'),
nargs='+')
return parser.parse_known_args()
if __name__ == "__main__":
ret_codes = run_tests_in_parallel(*parse_args())
- sys.exit(any(ret_codes))
+ num_failed = sum(1 for code in ret_codes if code)
+ print()
+ if num_failed:
+ print(f'FAILURE(s) in {num_failed} suite(s) above')
+ sys.exit(1)
+ else:
+ print('ALL PASSED')