Skip to content

Commit 8129163

Browse files
Updating github-config
1 parent 9c5448f commit 8129163

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

scripts/integration.sh

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ OPTIONS
2121
--help -h prints the command usage
2222
--github-token <token> GitHub token to use when making API requests
2323
--platform <cf|docker> Switchblade platform to execute the tests against
24-
--keep-failed-containers Preserve failed test containers for debugging (default: false)
2524
USAGE
2625
}
2726

2827
function main() {
29-
local src stack platform token cached parallel keep_failed
28+
local src stack platform token cached parallel
3029
src="$(find "${ROOTDIR}/src" -mindepth 1 -maxdepth 1 -type d )"
3130
stack="${CF_STACK:-$(jq -r -S .stack "${ROOTDIR}/config.json")}"
3231
platform="cf"
33-
keep_failed="false"
3432

3533
while [[ "${#}" != 0 ]]; do
3634
case "${1}" in
@@ -54,11 +52,6 @@ function main() {
5452
shift 2
5553
;;
5654

57-
--keep-failed-containers)
58-
keep_failed="true"
59-
shift 1
60-
;;
61-
6255
--help|-h)
6356
shift 1
6457
usage
@@ -101,26 +94,24 @@ function main() {
10194

10295
echo "Running integration suite (cached: ${cached}, parallel: ${parallel})"
10396

104-
specs::run "${cached}" "${parallel}" "${stack}" "${platform}" "${token:-}" "${keep_failed}"
97+
specs::run "${cached}" "${parallel}" "${stack}" "${platform}" "${token:-}"
10598
done
10699
}
107100

108101
function specs::run() {
109-
local cached parallel stack platform token keep_failed
102+
local cached parallel stack platform token
110103
cached="${1}"
111104
parallel="${2}"
112105
stack="${3}"
113106
platform="${4}"
114107
token="${5}"
115-
keep_failed="${6}"
116108

117-
local nodes cached_flag serial_flag platform_flag stack_flag token_flag keep_failed_flag
109+
local nodes cached_flag serial_flag platform_flag stack_flag token_flag
118110
cached_flag="--cached=${cached}"
119111
serial_flag="--serial=true"
120112
platform_flag="--platform=${platform}"
121113
stack_flag="--stack=${stack}"
122114
token_flag="--github-token=${token}"
123-
keep_failed_flag="--keep-failed-containers=${keep_failed}"
124115
nodes=1
125116

126117
if [[ "${parallel}" == "true" ]]; then
@@ -144,8 +135,7 @@ function specs::run() {
144135
"${platform_flag}" \
145136
"${token_flag}" \
146137
"${stack_flag}" \
147-
"${serial_flag}" \
148-
"${keep_failed_flag}"
138+
"${serial_flag}"
149139
}
150140

151141
function buildpack::package() {

0 commit comments

Comments
 (0)