aboutsummaryrefslogtreecommitdiff
path: root/test/utils.bash
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils.bash')
-rw-r--r--test/utils.bash11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/utils.bash b/test/utils.bash
index 9979404..930b0f0 100644
--- a/test/utils.bash
+++ b/test/utils.bash
@@ -39,11 +39,12 @@ echo_lines() {
}
mkzip() {
-(
- cd $BATS_TEST_DIRNAME/data/$1
- rm -f ../$1.zip
- zip -qr ../$1.zip *
-)
+ local name=$1; shift
+ pushd .
+ cd $BATS_TEST_DIRNAME/data/$name
+ rm -f ../$name.zip
+ zip -qr ../$name.zip *
+ popd
}
install_artifact() {