mailr16389 - /branches/uf_redesign/test_suite/gui_tests/base_classes.py


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

Header


Content

Posted by edward on May 22, 2012 - 15:08:
Author: bugman
Date: Tue May 22 15:08:08 2012
New Revision: 16389

URL: http://svn.gna.org/viewcvs/relax?rev=16389&view=rev
Log:
Fix for the file selection and directory handling in the GUI base test 
_execute_uf() method.

This now handles the situation of when no directory argument is supplied.


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

Modified: branches/uf_redesign/test_suite/gui_tests/base_classes.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/test_suite/gui_tests/base_classes.py?rev=16389&r1=16388&r2=16389&view=diff
==============================================================================
--- branches/uf_redesign/test_suite/gui_tests/base_classes.py (original)
+++ branches/uf_redesign/test_suite/gui_tests/base_classes.py Tue May 22 
15:08:08 2012
@@ -95,8 +95,8 @@
                     if uf_data.kargs[j]['arg_type'] == 'file sel':
                         file_sel_name = uf_data.kargs[j]['name']
 
-                # Prepend the directory to the file, if needed.
-                if file_sel_name in kargs:
+                # Prepend the directory to the file, if needed and supplied.
+                if file_sel_name in kargs and kargs[arg['name']]:
                     kargs[file_sel_name] = kargs[arg['name']] + sep + 
kargs[file_sel_name]
 
                 # Remove the directory argument.




Related Messages


Powered by MHonArc, Updated Tue May 22 15:40:02 2012