From 1480338c5a3da5b6494565ab955ab67a15f19dd3 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 31 Oct 2013 21:52:24 +0100 Subject: app-init: Adding '-s' option to set a configuration option before the resolver is executed and app is installed. The configuration will be available when the app's hooks are executed. o Running the documentation though aspell. --- test/utils.bash | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/utils.bash') 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() { -- cgit v1.2.3