diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-07-06 11:04:23 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-07-06 11:04:23 (GMT) |
commit | ddd445e2918cb76ec8d870e16c7c8a9264273a90 (patch) | |
tree | 67dc40888ebc94feb31d40a4d460ac0fd9426335 | |
parent | 484186512be0323d2978ebfad14578bcec620d47 (diff) |
Try to sleep 10 seconds after closing an activity
That's where we always seems to fail, maybe something with treeview
refresh.
-rw-r--r-- | tests/shell.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/shell.py b/tests/shell.py index c13bf8f..1e00b97 100644 --- a/tests/shell.py +++ b/tests/shell.py @@ -1,15 +1,13 @@ import sys +from time import sleep from dogtail import tree from dogtail import predicate from dogtail import dump -from dogtail.config import config ACTIVITIES_WITH_OBJECT_CHOOSER = ["Read", "Image Viewer", "Jukebox"] ACTIVITIES_TO_IGNORE = ["Pippy", "Write"] -config.load({ "actionDelay": 3 }) - def build_activities_list(): shell = tree.root.child(name="sugar-session", roleName="application") @@ -71,6 +69,7 @@ def main(): for activity in build_activities_list(): launch_and_stop_activity(activity) + sleep(10) try: main() |