From 0023dfc1560549664642b2e69e8e46974523a3e3 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 20 Jun 2012 09:45:29 +0200 Subject: Fix failure exit from first stage. --- pmstestsuite/cli.py | 10 ++++++---- 1 file 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 -- cgit v1.2.3-65-gdbad