diff options
-rw-r--r-- | pmstestsuite/cli.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pmstestsuite/cli.py b/pmstestsuite/cli.py index a0abf02..9ffc4c8 100644 --- a/pmstestsuite/cli.py +++ b/pmstestsuite/cli.py @@ -276,7 +276,8 @@ class PMSTestSuiteCLI(object): files.update(t.get_output_files()) if len(self.test_library) == 0: print('No tests found (?!), refusing to proceed.') - return 1 + self.loop.quit() + return False files.update(get_common_eclass_files()) files.update(self.test_library.get_common_files()) @@ -295,10 +296,12 @@ class PMSTestSuiteCLI(object): else: if needs_manifests: print('No PM was able to do the Manifests, failing.') - return 1 + self.loop.quit() + return False if self.create_repo_only: - return 0 + self.loop.quit() + return False self.pm_iter = iter(self.pms) self.results = {} @@ -309,7 +312,6 @@ class PMSTestSuiteCLI(object): return False - def main(self, argv): self._start(*argv) self.exception = None |