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.
pull/1402/head
Nirbheek Chauhan 8 years ago
parent 0cf18eb3bc
commit e9f9a42c7a
  1. 2
      mesontest.py

@ -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

Loading…
Cancel
Save