Making run_test.sh python version and directory
agnostic

Refactored some of the shell scripts to handle
being run from another directory, as well as to
not force the use of 2.6

edit: format the comments

Change-Id: Id92b9dc82743598b7c570e431cad423c8a2ee95d
diff --git a/run_tests.sh b/run_tests.sh
index 5ff837e..bf371a7 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -26,15 +26,15 @@
 echo $test_opts
 
 function run_tests {
+  base_dir=$(dirname $0)
   for test_dir in $tests
   do
-    cd $test_dir
-    test_cmd="./run_tests.sh ${test_opts}"
+    test_cmd="${base_dir}/${test_dir}/run_tests.sh ${test_opts}"
     echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
     echo $test_cmd
     echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
     $test_cmd
-    cd ..
+
   done
 }