qitest skip empty test runner if --allow-no-test
@@ -38,6 +38,9 @@ def do(args):
if n != 1:
ui.info(ui.bold, "::", "[%i on %i]" % (i + 1, len(test_runners)),
ui.reset, "Running tests in", ui.blue, test_runner.cwd)
+ if not test_runner.tests and args.allow_no_test:
+ ui.warning("No test to run")
+ continue
res = test_runner.run()
if args.coverage:
build_worktree = qibuild.parsers.get_build_worktree(args, verbose=False)
