From: Adam Crume Date: Wed, 23 Jul 2014 15:48:39 +0000 (-0700) Subject: lttng: Fix 'make check' by setting up fake HOME X-Git-Tag: v0.86~231^2~39 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c888a89836302b695bf84a8f62aa447a514b78ef;p=ceph.git 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 --- diff --git a/src/test/run-cli-tests b/src/test/run-cli-tests index fec60dea889..e29ad2086ae 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