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 1QRSbt-0008B5-Ni for garchives@archives.gentoo.org; Tue, 31 May 2011 17:20:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C7D281C081; Tue, 31 May 2011 17:19:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 981631C081 for ; Tue, 31 May 2011 17:19:53 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 21C131B4016 for ; Tue, 31 May 2011 17:19:53 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 5145E8050D for ; Tue, 31 May 2011 17:19:52 +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: <6c74f6434db0c985c7c0b0afaec7227e4e5f139c.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: PMSTestSuite/dbus_handler.py X-VCS-Directories: PMSTestSuite/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6c74f6434db0c985c7c0b0afaec7227e4e5f139c Date: Tue, 31 May 2011 17:19:52 +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: 03286dfa8d14f56c722ab6e33ad312d4 commit: 6c74f6434db0c985c7c0b0afaec7227e4e5f139c Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Tue May 31 17:12:36 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Tue May 31 17:17:32 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D6c74f643 Use actual tests in dbus_handler. --- PMSTestSuite/dbus_handler.py | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/PMSTestSuite/dbus_handler.py b/PMSTestSuite/dbus_handler.py index f19c098..89e2ac5 100644 --- a/PMSTestSuite/dbus_handler.py +++ b/PMSTestSuite/dbus_handler.py @@ -11,23 +11,23 @@ dbus_object_prefix =3D '/org/gentoo/PMSTestSuite' class RunningTest(dbus.service.Object): """ A class encapsulating a running test. """ =20 - def __init__(self, test_name, parent): + def __init__(self, test, parent): """ - Initialize the object for test , for DBusHandler . + Initialize the object for test , for DBusHandler . """ - self.test_name =3D test_name - self.output =3D [] + self.test =3D test dbus.service.Object.__init__( + self, parent.bus, - '%s/%s' % (dbus_object_prefix, test_name) + '%s/%s' % (dbus_object_prefix, test.p.replace('-', '_')) ) =20 @dbus.service.method( dbus_interface=3Ddbus_interface_name, - in_signature=3D'ss', out_signature=3D'') + in_signature=3D's', out_signature=3D'') def append_output(self, l): """ Append the line to the test output. """ - self.output.append(l) + self.test.dbus_output.append(l) =20 class DBusHandler(object): """ A class handling all D-Bus interaction for PMS Test Suite. """ @@ -40,4 +40,4 @@ class DBusHandler(object): =20 def add_test(self, test): """ Add the object for to the handler. """ - test._dbusobj =3D RunningTest(test.pn, self) + test._dbusobj =3D RunningTest(test, self)