[open-ils-commits] r20150 - branches/rel_2_0/build/i18n/tests (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Apr 18 01:15:38 EDT 2011


Author: dbs
Date: 2011-04-18 01:15:34 -0400 (Mon, 18 Apr 2011)
New Revision: 20150

Modified:
   branches/rel_2_0/build/i18n/tests/check_entities.py
   branches/rel_2_0/build/i18n/tests/check_properties.py
Log:
Enable relative paths in i18n testing scripts

We were 98% of the way there; now we no longer need to
cd into the same directory as the i18n testing scripts
to run them with meaningful output. Should be useful
for adding these to the CI server.


Modified: branches/rel_2_0/build/i18n/tests/check_entities.py
===================================================================
--- branches/rel_2_0/build/i18n/tests/check_entities.py	2011-04-18 05:15:19 UTC (rev 20149)
+++ branches/rel_2_0/build/i18n/tests/check_entities.py	2011-04-18 05:15:34 UTC (rev 20150)
@@ -124,7 +124,7 @@
     xul_files = []
 
     for x_dir in XML_DIRS:
-        for root, dirs, files in os.walk(x_dir):
+        for root, dirs, files in os.walk(os.path.join(basedir, x_dir)):
             for x_file in files:
                 if os.path.splitext(x_file)[1] == '.xul' or \
 				   os.path.splitext(x_file)[1] == '.html' or \

Modified: branches/rel_2_0/build/i18n/tests/check_properties.py
===================================================================
--- branches/rel_2_0/build/i18n/tests/check_properties.py	2011-04-18 05:15:19 UTC (rev 20149)
+++ branches/rel_2_0/build/i18n/tests/check_properties.py	2011-04-18 05:15:34 UTC (rev 20150)
@@ -113,7 +113,7 @@
     xul_files = []
 
     for x_dir in XUL_DIRS:
-        for root, dirs, files in os.walk(x_dir):
+        for root, dirs, files in os.walk(os.path.join(basedir, x_dir)):
             for x_file in files:
                 if os.path.splitext(x_file)[1] == '.xul' or os.path.splitext(x_file)[1] == '.js':
                     check_xul(root, x_file, props)



More information about the open-ils-commits mailing list