diff options
author | 2011-08-13 10:51:17 +0200 | |
---|---|---|
committer | 2011-08-13 10:51:17 +0200 | |
commit | 288a3f8d17c4d0679fea8d27847314f3d96310fd (patch) | |
tree | 01be60fa1c8dea70ac0f6c22dc35484efccc738f | |
parent | Improve docs. (diff) | |
download | pms-test-suite-288a3f8d17c4d0679fea8d27847314f3d96310fd.tar.gz pms-test-suite-288a3f8d17c4d0679fea8d27847314f3d96310fd.tar.bz2 pms-test-suite-288a3f8d17c4d0679fea8d27847314f3d96310fd.zip |
Check whether PDEPs are merged before the ebuild.
-rw-r--r-- | pmstestsuite/library/standard/depend.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pmstestsuite/library/standard/depend.py b/pmstestsuite/library/standard/depend.py index 0ecfe9e..a773b25 100644 --- a/pmstestsuite/library/standard/depend.py +++ b/pmstestsuite/library/standard/depend.py @@ -32,6 +32,23 @@ class PDependTest(DBusEbuildDependencyTestCase): pdepend_classes = [EbuildToucher] + def __init__(self, *args, **kwargs): + DBusEbuildDependencyTestCase.__init__(self, *args, **kwargs) + self.phase_funcs['pkg_postinst'].extend([ + 'pms-test-suite-%s' % self.dependant_ebuilds[0].pv, + 'pms-test-dbus_append_result ${?}' + ]) + + def check_dbus_result(self, output, pm): + DBusEbuildDependencyTestCase.check_dbus_result(self, output, pm) + + try: + res = output[0] == '0' + except IndexError: + res = None + self.assertFalse(res, 'PDEP merged before ebuild', + undefined = True) + class FailingDependTest(DBusEbuildDependencyTestCase): """ Unfulfilled DEPEND test. """ |