]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
lttng: Fix 'make check' by setting up fake HOME
authorAdam Crume <adamcrume@gmail.com>
Wed, 23 Jul 2014 15:48:39 +0000 (08:48 -0700)
committerAdam Crume <adamcrume@gmail.com>
Wed, 13 Aug 2014 20:58:18 +0000 (13:58 -0700)
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 <adamcrume@gmail.com>
src/test/run-cli-tests

index fec60dea8891c940b7390c6dd219b6a9ba00cf54..e29ad2086aecd38f412a48afbd62fd213a1dd36a 100755 (executable)
@@ -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