Skip to content

Commit 568f875

Browse files
committed
Allow ci_integration.sh to target individual kitchen instances
1 parent ca9b78a commit 568f875

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/ci_integration.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
DELETE_AT_EXIT="$(mktemp -d)"
1919
finish() {
2020
echo 'BEGIN: finish() trap handler' >&2
21-
kitchen destroy
21+
kitchen destroy "$SUITE"
2222
[[ -d "${DELETE_AT_EXIT}" ]] && rm -rf "${DELETE_AT_EXIT}"
2323
echo 'END: finish() trap handler' >&2
2424
}
@@ -47,6 +47,8 @@ setup_environment() {
4747
}
4848

4949
main() {
50+
export SUITE="${SUITE:-}"
51+
5052
set -eu
5153
# Setup trap handler to auto-cleanup
5254
export TMPDIR="${DELETE_AT_EXIT}"
@@ -57,10 +59,10 @@ main() {
5759
set -x
5860

5961
# Execute the test lifecycle
60-
kitchen create
61-
kitchen converge
62-
kitchen converge
63-
kitchen verify
62+
kitchen create "$SUITE"
63+
kitchen converge "$SUITE"
64+
kitchen converge "$SUITE"
65+
kitchen verify "$SUITE"
6466
}
6567

6668
# if script is being executed and not sourced.

0 commit comments

Comments
 (0)