Commit 7a823598 authored by adamk's avatar adamk Committed by Commit bot

run-tests.py: warn when no tests were run

The previous approach to this (in 1b1de2d2) did not work well with
bots that intentionally run no tests. But I think this warning message
is still useful for developers.

Review URL: https://codereview.chromium.org/1281313004

Cr-Commit-Position: refs/heads/master@{#30116}
parent 17f4c5bb
......@@ -697,6 +697,10 @@ def Execute(arch, mode, args, options, suites, workspace):
if options.time:
verbose.PrintTestDurations(suites, overall_duration)
if num_tests == 0:
print("Warning: no tests were run!")
return exit_code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment