diff options
author | 2012-01-03 12:19:29 +0100 | |
---|---|---|
committer | 2012-01-03 12:19:29 +0100 | |
commit | bb3aaa1c8bcffe9c0656d118d1859da81844ec68 (patch) | |
tree | 6e9c3e42b5879851ba9bfc462663f141148568c2 | |
parent | Don't hardcode D-Bus paths in the eclass. (diff) | |
download | pms-test-suite-bb3aaa1c8bcffe9c0656d118d1859da81844ec68.tar.gz pms-test-suite-bb3aaa1c8bcffe9c0656d118d1859da81844ec68.tar.bz2 pms-test-suite-bb3aaa1c8bcffe9c0656d118d1859da81844ec68.zip |
Move repo startup code to an idle.
-rw-r--r-- | pmstestsuite/cli.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pmstestsuite/cli.py b/pmstestsuite/cli.py index 3d4b79e..3efd658 100644 --- a/pmstestsuite/cli.py +++ b/pmstestsuite/cli.py @@ -248,9 +248,7 @@ class PMSTestSuiteCLI(object): else: self.start_pm() - def main(self, argv): - self._start(*argv) - + def generate_and_start(self): print('-> Generating ebuilds...') files = {} for t in self.test_library: @@ -285,6 +283,13 @@ class PMSTestSuiteCLI(object): self.results = {} self.prepare(first = True) + return False + + def main(self, argv): + self._start(*argv) + + gobject.idle_add(self.generate_and_start) + self.ret = 1 self.loop = gobject.MainLoop() self.loop.run() |