Skip to content

Commit 425177e

Browse files
synaretephlogistonjohn
authored andcommitted
tests: append local-tools bin dir to PATH
Some developers uses 'kustomize' from local '.bin' directory, and therefore it should be appended to search PATH variable as part of tests-execution wrapper script. Signed-off-by: Shachar Sharon <[email protected]>
1 parent 6a0d9c8 commit 425177e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#!/bin/sh
22

33
set -e
4-
cd "$(dirname "${0}")/.."
4+
SELFDIR="$(dirname "${0}")"
5+
ROOTDIR="$(realpath "${SELFDIR}/../")"
6+
LOCAL_BINDIR="${ROOTDIR}/.bin"
7+
8+
cd "${ROOTDIR}"
9+
export PATH=${PATH}:${LOCAL_BINDIR}
510

611
gtest() {
712
if [ "$SMBOP_TEST_CLUSTERED" ]; then

0 commit comments

Comments
 (0)