summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtesting/tools/run_javascript_tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/tools/run_javascript_tests.py b/testing/tools/run_javascript_tests.py
index 237321e343..4361ea08f9 100755
--- a/testing/tools/run_javascript_tests.py
+++ b/testing/tools/run_javascript_tests.py
@@ -41,8 +41,9 @@ def main():
my_dir = os.path.dirname(os.path.realpath(__file__))
testing_dir = os.path.dirname(my_dir)
pdfium_dir = os.path.dirname(testing_dir)
- if os.path.basename(pdfium_dir) != 'pdfium':
- print 'Confused, can not find pdfium directory, aborting.'
+ if (os.path.basename(my_dir) != 'tools' or
+ os.path.basename(testing_dir) != 'testing'):
+ print 'Confused, can not find pdfium root directory, aborting.'
return 1
# Other scripts are found in the same directory as this one.