Skip to content

Commit ae81c6c

Browse files
author
Sergio Durigan Junior
committed
tests/tests.sh: Fix ROOTDIR definition
Back in ea192a3 the definition of the ROOTPATH variable was changed to fix some shellcheck errors. The problem is that the new definition wrongly causes the variable to have an empty value, effectively making our tests to run against the installed wcurl version instead of the version we're actually developing. This commit fixes the problem by simplifying the ROOTPATH definition again while making it explicit that CDPATH's value should be empty. Signed-off-by: Sergio Durigan Junior <[email protected]>
1 parent df07f13 commit ae81c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
# SPDX-License-Identifier: curl
2828

29-
ROOTDIR=$(CDPATH=$(cd -- "$(dirname -- "$0")/.." && pwd))
29+
ROOTDIR=$(CDPATH="" cd -- "$(dirname -- "$0")/.." && pwd)
3030
readonly ROOTDIR
3131
export PATH="${ROOTDIR}:${PATH}"
3232

0 commit comments

Comments
 (0)