From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QpcHt-0007Ke-Sa for garchives@archives.gentoo.org; Sat, 06 Aug 2011 08:31:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0725821C101; Sat, 6 Aug 2011 08:31:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CFFB421C0FB for ; Sat, 6 Aug 2011 08:31:10 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 67D691B402F for ; Sat, 6 Aug 2011 08:31:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id AF41E80043 for ; Sat, 6 Aug 2011 08:31:09 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <7e79d0b83d41d924c5252e9f686fe437314a05f3.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/library/standard/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: pmstestsuite/library/standard/banned_commands.py X-VCS-Directories: pmstestsuite/library/standard/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7e79d0b83d41d924c5252e9f686fe437314a05f3 Date: Sat, 6 Aug 2011 08:31:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 610b0201444330df788422516901c549 commit: 7e79d0b83d41d924c5252e9f686fe437314a05f3 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Sat Aug 6 08:13:14 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Sat Aug 6 08:13:14 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D7e79d0b8 dohard & dosed: fix with no D-Bus results. --- pmstestsuite/library/standard/banned_commands.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pmstestsuite/library/standard/banned_commands.py b/pmstestsu= ite/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] =3D=3D '0', 'hardlink created') + if output: + self.assertTrue(output[0] =3D=3D '0', 'hardlink created') =20 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')