diff options
Diffstat (limited to 'test/utils.bash')
-rw-r--r-- | test/utils.bash | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/utils.bash b/test/utils.bash index eaa2580..418b962 100644 --- a/test/utils.bash +++ b/test/utils.bash @@ -8,6 +8,7 @@ exit_usage_wrong=0 echo_lines() { for line in "${lines[@]}"; do echo $line; done + echo status=$status } APPSH=$(pwd)/app @@ -17,13 +18,15 @@ setup() { mkdir $BATS_TMPDIR/app.sh cd $BATS_TMPDIR/app.sh ln -s $APPSH + WORK=$(cd -P $BATS_TMPDIR/app.sh; pwd) + echo WORK=$WORK } -zip_app_a() { +mkzip() { ( - cd $BATS_TEST_DIRNAME/data/app-a - rm -f ../app-a.zip - zip -qr ../app-a.zip * + cd $BATS_TEST_DIRNAME/data/$1 + rm -f ../$1.zip + zip -qr ../$1.zip * ) } |