[lttng-dev] [PATCH lttng-tools] Fix: Tests should set the LTTNG_SESSION_CONFIG_XSD_PATH variable

Jérémie Galarneau jeremie.galarneau at efficios.com
Wed May 14 16:52:22 EDT 2014


Tests should set the LTTNG_SESSION_CONFIG_XSD_PATH environment
variable to use the in-tree session configuration schema.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
---
 tests/utils/utils.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh
index a1a26d9..280cc40 100644
--- a/tests/utils/utils.sh
+++ b/tests/utils/utils.sh
@@ -166,6 +166,8 @@ function start_lttng_sessiond()
 	fi
 
 	DIR=$(readlink -f $TESTDIR)
+	: ${LTTNG_SESSION_CONFIG_XSD_PATH=${DIR}/../src/common/config/}
+	export LTTNG_SESSION_CONFIG_XSD_PATH
 
 	if [ -z $(pidof lt-$SESSIOND_BIN) ]; then
 		$DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --background --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd"
-- 
1.9.2




More information about the lttng-dev mailing list