From 3b3c80db30af556d5da7301037bf16782216d0bd Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 30 Jan 2013 20:50:18 +0100 Subject: bin/app-init: o Adding -p to mkdir so parent directories are created. libexec/app-resolver-maven: o Not using command expansion to make sure "set -e" works as normal. o Adding a basic check that xmlstartlet has a useful output. --- test/app-init.bats | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'test/app-init.bats') diff --git a/test/app-init.bats b/test/app-init.bats index df3919e..2a3e1d8 100755 --- a/test/app-init.bats +++ b/test/app-init.bats @@ -20,15 +20,7 @@ load utils @test "Happy day" { mkzip app-a - - REPO=$BATS_TMPDIR/repo - - if [ ! -f $REPO/org/example/app-a/1.0-SNAPSHOT/maven-metadata.xml ] - then - mvn deploy:deploy-file -Durl=file://$REPO \ - -Dfile=`echo $APPSH_HOME/test/data/app-a.zip` -DgeneratePom \ - -DgroupId=org.example -DartifactId=app-a -Dversion=1.0-SNAPSHOT -Dpackaging=zip - fi + install_artifact app init -d my-app maven -r "file://$BATS_TMPDIR/repo" org.example:app-a:1.0-SNAPSHOT; echo_lines eq '$status' 0 -- cgit v1.2.3