Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/sugar/shell.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-27 20:13:06 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-27 20:13:06 (GMT)
commit633edbdfbd03b56ae28c5970e09a15804e78ba2d (patch)
tree64742647b14f61a25fe9a3a76407cbe5a48288ee /tests/sugar/shell.py
parentc9766d61d99cb64e47a1f30ee2fbc94aee5d28ab (diff)
Use logs in the UI tests
To get timestamps
Diffstat (limited to 'tests/sugar/shell.py')
-rw-r--r--tests/sugar/shell.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/sugar/shell.py b/tests/sugar/shell.py
index ef2e4af..515f98e 100644
--- a/tests/sugar/shell.py
+++ b/tests/sugar/shell.py
@@ -1,3 +1,4 @@
+import logging
import sys
import time
@@ -25,7 +26,7 @@ def build_activities_list():
def launch_and_stop_activity(activity_name):
- print "Launching %s" % activity_name
+ logging.info("Launching %s" % activity_name)
root = tree.get_root()
shell = root.find_child(name="sugar-session", role_name="application")
@@ -40,7 +41,7 @@ def launch_and_stop_activity(activity_name):
if name == activity_name:
icon.click()
- print "Stopping %s" % activity_name
+ logging.info("Stopping %s" % activity_name)
if activity_name in ACTIVITIES_WITH_OBJECT_CHOOSER:
close_button = shell.find_child(name="Close",
@@ -73,6 +74,10 @@ def go_to_list_view():
def main():
+ format = "%(created)f %(message)s"
+ logging.basicConfig(format=format)
+ logging.root.setLevel(logging.DEBUG)
+
go_to_list_view()
for activity in build_activities_list():