From ae4e02a37c94ee94bfebff65a5e6b7ba69aaaf08 Mon Sep 17 00:00:00 2001 From: Adam Crume Date: Wed, 23 Jul 2014 08:48:39 -0700 Subject: [PATCH] lttng: Fix 'make check' by setting up fake HOME If the HOME variable is not set, LTTng complains, and the extra output fails to match what the tests expect, so they fail. Signed-off-by: Adam Crume --- src/test/run-cli-tests | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/run-cli-tests b/src/test/run-cli-tests index fec60dea8891c..e29ad2086aecd 100755 --- a/src/test/run-cli-tests +++ b/src/test/run-cli-tests @@ -35,6 +35,8 @@ fi SRCDIR_ABS="$(readlink -f "$SRCDIR")" BUILDDIR_ABS="$(readlink -f "$BUILDDIR")" +FAKE_HOME="$BUILDDIR_ABS/fake_home" +mkdir -p "$FAKE_HOME" # cram doesn't like seeing the same foo.t basename twice on the same # run, so run it once per directory @@ -48,6 +50,7 @@ for tool in "$SRCDIR"/cli/*; do CCACHE_DIR="$CCACHE_DIR" \ CC="$CC" \ CXX="$CXX" \ + HOME="$FAKE_HOME" \ "$SRCDIR/run-cli-tests-maybe-unset-ccache" \ "$CRAM_BIN" -v "$@" --error-dir="$BUILDDIR/cli/$toolname" -- "$tool"/*.t; then FAILED=1 -- 2.39.5