mailr16470 - /branches/uf_redesign/test_suite/gui_tests/model_free.py


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

Header


Content

Posted by edward on May 28, 2012 - 10:35:
Author: bugman
Date: Mon May 28 10:35:22 2012
New Revision: 16470

URL: http://svn.gna.org/viewcvs/relax?rev=16470&view=rev
Log:
Fix for the model-free GUI auto-analysis test under certain conditions.

The spin viewer window was loading the spins asynchronously, but the 
subsequent relaxation data
loading was synchronous.  If a previous GUI test failed this would often 
trigger a racing condition!


Modified:
    branches/uf_redesign/test_suite/gui_tests/model_free.py

Modified: branches/uf_redesign/test_suite/gui_tests/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/test_suite/gui_tests/model_free.py?rev=16470&r1=16469&r2=16470&view=diff
==============================================================================
--- branches/uf_redesign/test_suite/gui_tests/model_free.py (original)
+++ branches/uf_redesign/test_suite/gui_tests/model_free.py Mon May 28 
10:35:22 2012
@@ -34,6 +34,7 @@
 
 # relax GUI imports.
 from gui.analyses import auto_model_free
+from gui.interpreter import Interpreter; interpreter = Interpreter()
 from gui.string_conv import float_to_gui, str_to_gui
 from gui.uf_objects import Uf_storage; uf_store = Uf_storage()
 from gui.wizard import Wiz_window
@@ -66,9 +67,6 @@
         # Change the results directory.
         analysis.field_results_dir.SetValue(str_to_gui(ds.tmpdir))
 
-        # Set up a wizard window instance for all of the user function pages.
-        wizard = Wiz_window(self.app.gui)
-
         # The data path.
         data_path = status.install_path + sep + 'test_suite' + sep + 
'shared_data' + sep + 'model_free' + sep + 'sphere' + sep
 
@@ -89,6 +87,9 @@
 
         # Close the spin viewer window.
         self.app.gui.spin_viewer.handler_close()
+
+        # Flush the interpreter in preparation for the synchronous user 
functions of the peak list wizard.
+        interpreter.flush()
 
         # Load the relaxation data.
         data = [




Related Messages


Powered by MHonArc, Updated Mon May 28 11:00:02 2012