mailr13256 - /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 - 12:28:
Author: bugman
Date: Tue Jun 28 12:28:57 2011
New Revision: 13256

URL: http://svn.gna.org/viewcvs/relax?rev=13256&view=rev
Log:
The auto NOE analysis GUI test now uses the Thread.join() method to block 
execution until finished.

This is much cleaner!


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=13256&r1=13255&r2=13256&view=diff
==============================================================================
--- branches/gui_testing/test_suite/gui_tests/noe.py (original)
+++ branches/gui_testing/test_suite/gui_tests/noe.py Tue Jun 28 12:28:57 2011
@@ -113,13 +113,10 @@
         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')
+        page.thread.join()
+        #while not status.exec_lock.locked():
+        #    sleep(1)
+        #status.exec_lock.acquire('auto noe')
 
         # The real data.
         res_nums = [4, 5, 6]




Related Messages


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