diff options
author | Michał Górny <mgorny@gentoo.org> | 2011-08-06 10:13:14 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2011-08-06 10:13:14 +0200 |
commit | 7e79d0b83d41d924c5252e9f686fe437314a05f3 (patch) | |
tree | 5a8665f5a011829d430aa6e48c1f8579eb6e9c68 /pmstestsuite | |
parent | Add additional checks for dohard & dosed. (diff) | |
download | pms-test-suite-7e79d0b83d41d924c5252e9f686fe437314a05f3.tar.gz pms-test-suite-7e79d0b83d41d924c5252e9f686fe437314a05f3.tar.bz2 pms-test-suite-7e79d0b83d41d924c5252e9f686fe437314a05f3.zip |
dohard & dosed: fix with no D-Bus results.
Diffstat (limited to 'pmstestsuite')
-rw-r--r-- | pmstestsuite/library/standard/banned_commands.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pmstestsuite/library/standard/banned_commands.py b/pmstestsuite/library/standard/banned_commands.py index 456b055..b2a68b1 100644 --- a/pmstestsuite/library/standard/banned_commands.py +++ b/pmstestsuite/library/standard/banned_commands.py @@ -32,7 +32,8 @@ class DoHardCommandTest(BannedCommandTest): BannedCommandTest.check_dbus_result(self, output, pm) finally: # XXX: ambiguous in EAPI 4 - self.assertTrue(output[0] == '0', 'hardlink created') + if output: + self.assertTrue(output[0] == '0', 'hardlink created') class DoSedCommandTest(BannedCommandTest): """ Test whether dosed command is actually banned. """ @@ -48,4 +49,5 @@ class DoSedCommandTest(BannedCommandTest): BannedCommandTest.check_dbus_result(self, output, pm) finally: # XXX: ambiguous in EAPI 4 - self.assertEqual(output[0].strip(), 'SED WORKED', 'dosed result') + if output: + self.assertEqual(output[0].strip(), 'SED WORKED', 'dosed result') |