aboutsummaryrefslogtreecommitdiff
path: root/test/app-init.bats
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-11-01 16:24:26 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-11-01 19:58:08 +0100
commitba7820b18c0ee8631505f7a2a764f7222a732d44 (patch)
tree82bc1d530e1f815e8d8687fa642dd5c84a59c114 /test/app-init.bats
parent93e2978fbe5582440d79c47b5975659d9cbf701b (diff)
downloadapp.sh-ba7820b18c0ee8631505f7a2a764f7222a732d44.tar.gz
app.sh-ba7820b18c0ee8631505f7a2a764f7222a732d44.tar.bz2
app.sh-ba7820b18c0ee8631505f7a2a764f7222a732d44.tar.xz
app.sh-ba7820b18c0ee8631505f7a2a764f7222a732d44.zip
bin/app-upgrade: Removing unreachable code. Fixing it so it comparesv0.2-dev
against the currently installed version instead of the last resolved version which makes it possible to retry installation of the same version. libexec/app-install-file: Allowing installation of the same file twice. Checks if the file has been unpacked earlier or not. Removes the unpacked version on failure.
Diffstat (limited to 'test/app-init.bats')
-rwxr-xr-xtest/app-init.bats14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/app-init.bats b/test/app-init.bats
index 2b5d724..484fe13 100755
--- a/test/app-init.bats
+++ b/test/app-init.bats
@@ -31,9 +31,10 @@ load utils
match '${lines[2]}' "Downloading org.example:app-a:1.0-*"
eq '${lines[3]}' "Unpacking..."
match '${lines[4]}' "Importing config from versions/1.0-*"
- match '${lines[5]}' "Creating current symlink for version 1.0-*"
- eq '${lines[6]}' "Post install"
- eq '${#lines[*]}' 7
+ eq '${lines[5]}' "pre-install"
+ match '${lines[6]}' "Creating current symlink for version 1.0-*"
+ eq '${lines[7]}' "post-install"
+ eq '${#lines[*]}' 8
is_directory "my-app/.app"
# Created by post-install
@@ -50,9 +51,10 @@ load utils
match '${lines[1]}' "Downloading org.example:app-a:1.0-*"
eq '${lines[2]}' "Unpacking..."
match '${lines[3]}' "Importing config from versions/1.0-*"
- match '${lines[4]}' "Creating current symlink for version 1.0-*"
- eq '${lines[5]}' "Post install"
- eq '${#lines[*]}' 6
+ eq '${lines[4]}' "pre-install"
+ match '${lines[5]}' "Creating current symlink for version 1.0-*"
+ eq '${lines[6]}' "post-install"
+ eq '${#lines[*]}' 7
is_directory "my-app/.app"
# Created by post-install