mesontest: Don't run tests if no tests were selected
The output is very confusing otherwise. Before it said
'No suitable tests defined' and then showed a list of tests that
passed/failed.
Now it will just say 'No suitable tests defined' and exit.
@@ -519,6 +519,8 @@ TIMEOUT: %4d
if os.path.isfile('build.ninja'):
subprocess.check_call([environment.detect_ninja(), 'all'])
tests = self.get_tests()
+ if not tests:
+ return 0
self.run_tests(tests)
return self.fail_count
