Skip to content

Commit 46193a0

Browse files
validate_devfile_schemas script accepts relative or absolute paths
Signed-off-by: Michael Valdron <[email protected]>
1 parent 4a227ca commit 46193a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/validate_devfile_schemas.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22

33
set -x
44

5-
stacksDir=${STACKS_DIR:-"$(pwd)/stacks"}
5+
stacksDir=${STACKS_DIR:-stacks}
66
stackDirs=${STACKS:-"$(bash "$(pwd)/tests/get_stacks.sh")"}
77

8+
# Use pwd if relative path
9+
if [[ ! ${stacksDir} = /* ]]; then
10+
stacksDir=$(pwd)/${stacksDir}
11+
fi
12+
813
ginkgo run --procs 2 \
914
tests/validate_devfile_schemas -- -stacksPath ${stacksDir} -stackDirs "$stackDirs"

0 commit comments

Comments
 (0)