From 74c0fd3e53c75d08ac4c428b0a2f5d21f189a34b Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Fri, 22 Jun 2012 15:14:20 +0200 Subject: [PATCH] tests: work in VPATH setup again * defs: Drop overly paranoid sanity checks that was causing all the tests to fail spuriously when run in a VPATH setup, with a message like: "../t/nodef.sh: ./t/ax/test-init.sh: not found in current directory". Those checks looked for invariants that, even if broken, would still cause the test to fail very early and with a pretty clear error message anyway. Signed-off-by: Stefano Lattarini --- defs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/defs b/defs index 559eea0..a47a541 100644 --- a/defs +++ b/defs @@ -20,14 +20,6 @@ # might be just a Bourne shell, non POSIX-conforming, like on Solaris # up to version 11 at least). -# Ensure we are running from the right directory. -for f in defs-static t/ax/test-init.sh; do - if test ! -f ./$f; then - echo "$0: ./$f: not found in current directory" >&2 - exit 99 - fi -done - # Source the shell static setup and variable definitions. . ./defs-static test $? -eq 0 || exit 99 -- 2.7.4