From f140a0339f4c4f0dd373d7d4b225bdc213300cce Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 21 Jun 2016 16:55:02 -0400 Subject: [PATCH] travis: fix cwd when running tests Make sure we don't go messing with the cwd when running different tests. This way we can always assume we start in the top level source dir. --- scripts/travis-build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh index badaf97c..e0bb19a4 100755 --- a/scripts/travis-build.sh +++ b/scripts/travis-build.sh @@ -49,9 +49,10 @@ build() { # Do an out-of-tree build and make sure we can create a release tarball. build_out_of_tree() { mkdir -p build/native - cd build/native + pushd build/native >/dev/null ../../configure make -j${JOBS} distcheck VERBOSE=1 + popd >/dev/null } main() {