File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,16 +93,6 @@ function main() {
9393 esac
9494 done
9595
96- if [[ -z " ${BUILDPACK_FILE:- } " ]]; then
97- echo " ERROR: BUILDPACK_FILE environment variable is required"
98- exit 1
99- fi
100-
101- if [[ ! -f " ${BUILDPACK_FILE} " ]]; then
102- echo " ERROR: Buildpack file not found: ${BUILDPACK_FILE} "
103- exit 1
104- fi
105-
10696 echo " === Java Buildpack Integration Tests ==="
10797 echo " Platform: ${platform} "
10898 echo " Stack: ${stack} "
@@ -141,8 +131,11 @@ function specs::run() {
141131 cd " ${ROOTDIR} "
142132 go mod download
143133
134+ local buildpack_file
135+ buildpack_file=" $( buildpack::package " 1.2.3" " ${cached} " " ${stack} " ) "
136+
144137 CF_STACK=" ${stack} " \
145- BUILDPACK_FILE=" ${BUILDPACK_FILE} " \
138+ BUILDPACK_FILE=" ${BUILDPACK_FILE:- " ${buildpack_file} " } " \
146139 GOMAXPROCS=" ${GOMAXPROCS:- " ${nodes} " } " \
147140 go test \
148141 -count=1 \
You can’t perform that action at this time.
0 commit comments