Skip to content

Commit df219f1

Browse files
committed
Wrap exports and test execution in a subshell
1 parent 9677d6a commit df219f1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

test-build.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ function test_image() {
5353
full_tag=$(get_full_tag "${variant}" "${tag}")
5454

5555
info "Testing ${full_tag}"
56-
export full_version=${full_version}
57-
export full_tag=${full_tag}
58-
bats test-image.bats
56+
(
57+
export full_version=${full_version}
58+
export full_tag=${full_tag}
59+
bats test-image.bats
60+
)
5961
}
6062

6163
cd "$(cd "${0%/*}" && pwd -P)" || exit

0 commit comments

Comments
 (0)