[orca] Move the regression test harness over to the new logger code



commit 45157e5f063786e24518602bf8ab22eb6629292a
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu May 10 13:29:40 2012 -0400

    Move the regression test harness over to the new logger code

 test/harness/runone.sh |    3 ---
 test/harness/utils.py  |   10 ++++------
 2 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/test/harness/runone.sh b/test/harness/runone.sh
index 147a9fd..fee5d10 100755
--- a/test/harness/runone.sh
+++ b/test/harness/runone.sh
@@ -73,9 +73,6 @@ if not orca.debug.debugFile:
         log.addHandler(handler)
         log.setLevel(logging.INFO)
 
-import orca.dbusserver as dbusserver
-dbusserver.init()
-
 EOF
 
 # Set up our local user settings file for the output format we want.
diff --git a/test/harness/utils.py b/test/harness/utils.py
index 131d08b..50a3367 100644
--- a/test/harness/utils.py
+++ b/test/harness/utils.py
@@ -3,10 +3,8 @@ sure your PYTHONPATH includes the directory containing this
 file in order for the tests that use it to work.  The test
 harness does that automatically for you."""
 
-import dbus
-bus = dbus.SessionBus()
-dbusOrca = bus.get_object('org.gnome.Orca', '/')
-dbusOrcaLogging = dbus.Interface(dbusOrca, 'org.gnome.Orca.Logging')
+import orca.logger as logger
+testLogger = logger.Logger()
 
 # Where to find Dojo tests.
 #
@@ -98,7 +96,7 @@ class StartRecordingAction(AtomicAction):
             AtomicAction.__init__(self, 0, lambda: None)
 
     def _startRecording(self):
-        dbusOrcaLogging.startRecording()
+        testLogger.startRecording()
 
     def __str__(self):
         return 'Start Recording Action'
@@ -240,7 +238,7 @@ class AssertPresentationAction(AtomicAction):
         return knownIssue
 
     def _stopRecording(self):
-        result = dbusOrcaLogging.stopRecording()
+        result = testLogger.stopRecording()
         results = self._assertionPredicate(result, self._expectedResults)
         if not results:
             AssertPresentationAction.totalSucceed += 1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]