From ec0cffd71a257cef03475ff5d189b2057db4426b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 21 Apr 2019 16:50:53 -0400 Subject: tests: Fix --bfs=path --- tests.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests.sh b/tests.sh index f6807e2..9fef675 100755 --- a/tests.sh +++ b/tests.sh @@ -60,6 +60,16 @@ Usage: $0 [--bfs=path/to/bfs] [--posix|--bsd|--gnu|--all] EOF } +function _realpath() { + ( + cd "${1%/*}" + echo "$PWD/${1##*/}" + ) +} + +BFS="$(_realpath ./bfs)" +TESTS="$(_realpath ./tests)" + BSD=yes GNU=yes ALL=yes @@ -608,16 +618,6 @@ if [ ! "$EXPLICIT" ]; then [ "$ALL" ] && enable_tests "${bfs_tests[@]}" fi -function _realpath() { - ( - cd "${1%/*}" - echo "$PWD/${1##*/}" - ) -} - -BFS="$(_realpath ./bfs)" -TESTS="$(_realpath ./tests)" - # The temporary directory that will hold our test data TMP="$(mktemp -d "${TMPDIR:-/tmp}"/bfs.XXXXXXXXXX)" chown "$(id -u):$(id -g)" "$TMP" -- cgit v1.2.3