Enable relative paths in i18n testing scripts
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 18 Apr 2011 05:14:41 +0000 (05:14 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 18 Apr 2011 05:14:41 +0000 (05:14 +0000)
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.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@20148 dcc99617-32d9-48b4-a31d-7c20da2025e4

build/i18n/tests/check_entities.py
build/i18n/tests/check_properties.py

index 3dce59c..d9d8818 100755 (executable)
@@ -124,7 +124,7 @@ def check_files(entities):
     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 \
index e2b9e42..410781e 100755 (executable)
@@ -113,7 +113,7 @@ def check_xul_files(props):
     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)