mailr13254 - /branches/gui_testing/test_suite/gui_tests/noe.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 28, 2011 - 11:34:
Author: bugman
Date: Tue Jun 28 11:34:38 2011
New Revision: 13254

URL: http://svn.gna.org/viewcvs/relax?rev=13254&view=rev
Log:
Added a time out to the NOE analysis GUI test to avoid hanging.


Modified:
    branches/gui_testing/test_suite/gui_tests/noe.py

Modified: branches/gui_testing/test_suite/gui_tests/noe.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/test_suite/gui_tests/noe.py?rev=13254&r1=13253&r2=13254&view=diff
==============================================================================
--- branches/gui_testing/test_suite/gui_tests/noe.py (original)
+++ branches/gui_testing/test_suite/gui_tests/noe.py Tue Jun 28 11:34:38 2011
@@ -113,8 +113,12 @@
         page.execute(wx.CommandEvent(wx.wxEVT_COMMAND_BUTTON_CLICKED, 
page.button_exec_id))
 
         # Wait for execution to complete.
+        i = 0
         while not status.exec_lock.locked():
             sleep(1)
+            i += 1
+            if i == 10:
+                break
         status.exec_lock.acquire('auto noe')
 
         # The real data.




Related Messages


Powered by MHonArc, Updated Tue Jun 28 12:40:03 2011