Blame SOURCES/bz1070916-pcmk-test_tools_set_up_override_for_local_schema_file_locations.patch

7100e8
commit 87b04358f7024ee1263f6baaa5a7df7f31b18028
7100e8
Author: Andrew Beekhof <andrew@beekhof.net>
7100e8
Date:   Tue Feb 4 12:22:37 2014 +1100
7100e8
7100e8
    Test: tools: Set up override for local schema file locations
7100e8
    
7100e8
    (cherry picked from commit 3d43ec1aa27420e23b8a5c9a921e9fab57669eb1)
7100e8
7100e8
diff --git a/tools/regression.sh b/tools/regression.sh
7100e8
index 12e2bcf..8c9a4d4 100755
7100e8
--- a/tools/regression.sh
7100e8
+++ b/tools/regression.sh
7100e8
@@ -60,8 +60,10 @@ while test "$done" = "0"; do
7100e8
 done
7100e8
 
7100e8
 if [ "x$VALGRIND_CMD" = "x" -a -x $test_home/crm_simulate ]; then
7100e8
-    echo "Using local binaries from: $test_home"
7100e8
-    PATH="$test_home:$PATH"
7100e8
+    xml_home=`dirname ${test_home}`
7100e8
+    echo "Using local binaries from: $test_home, schemas from $xml_home"
7100e8
+    export PATH="$test_home:$PATH"
7100e8
+    export PCMK_schema_directory=${xml_home}/xml
7100e8
 fi
7100e8
 
7100e8
 function test_tools() {