diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-06-20 09:45:29 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-06-20 09:45:29 +0200 |
commit | 0023dfc1560549664642b2e69e8e46974523a3e3 (patch) | |
tree | df7e63aa68b553539a1f83cf53a5f20728aaff98 | |
parent | Drop outdated D-Bus info from README. (diff) | |
download | pms-test-suite-0023dfc1560549664642b2e69e8e46974523a3e3.tar.gz pms-test-suite-0023dfc1560549664642b2e69e8e46974523a3e3.tar.bz2 pms-test-suite-0023dfc1560549664642b2e69e8e46974523a3e3.zip |
Fix failure exit from first stage.
-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 |