[mousetrap/gnome3-wip: 42/240] Removed hard-coded path in python test runner.



commit bc56ebaf3ed6908adb3eea772c6bccfd8dfea476
Author: Stoney Jackson <dr stoney gmail com>
Date:   Fri May 16 16:04:20 2014 -0400

    Removed hard-coded path in python test runner.

 bin/lib/run_python_tests.py |   11 +----------
 bin/run_tests.sh            |    2 +-
 2 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/bin/lib/run_python_tests.py b/bin/lib/run_python_tests.py
old mode 100755
new mode 100644
index 1af645b..96397ed
--- a/bin/lib/run_python_tests.py
+++ b/bin/lib/run_python_tests.py
@@ -13,8 +13,7 @@ def main():
 
 def initialize_import_path():
     paths = [
-        get_source_directory(),
-        get_project_directory()
+        get_source_directory()
     ]
     append_to_path(paths)
 
@@ -32,14 +31,6 @@ def get_project_directory():
     return dirname(dirname(dirname(abspath(__file__))))
 
 
-def get_site_package_directory():
-    # FIXME: this path could be different on different platforms.
-    # Use autotools to determine its location by changing this file
-    # into a .in file, and replace the string below with an automake(?)
-    # variable.
-    return '/usr/local/lib64/python2.7/site-packages'
-
-
 def load_tests():
     directory = get_source_directory()
     tests = TestLoader().discover(directory)
diff --git a/bin/run_tests.sh b/bin/run_tests.sh
index 51c9262..bbf06b5 100755
--- a/bin/run_tests.sh
+++ b/bin/run_tests.sh
@@ -3,6 +3,6 @@ test -z "$PROJECT_DIRECTORY" && . "$(dirname "$0")"/lib/environment_up.sh
 cd "$PROJECT_DIRECTORY"
 
 bin/lib/run_shell_tests.sh
-bin/lib/run_python_tests.py
+python bin/lib/run_python_tests.py
 
 cd -


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]