diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-10-14 09:43:38 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-10-14 09:43:38 +0200 |
commit | 7bb8f6710c94260f05f6d88910864e2b25484e6c (patch) | |
tree | bf93bbbe7d7f64130b2e712437e2f07287b91be3 /test/utils.bash | |
parent | a3db63fa62abee81e866fc2397c9302486a09cbb (diff) | |
download | app.sh-7bb8f6710c94260f05f6d88910864e2b25484e6c.tar.gz app.sh-7bb8f6710c94260f05f6d88910864e2b25484e6c.tar.bz2 app.sh-7bb8f6710c94260f05f6d88910864e2b25484e6c.tar.xz app.sh-7bb8f6710c94260f05f6d88910864e2b25484e6c.zip |
o Setting a default PATH for postinstall.
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 * ) } |