Skip to content

Commit

Permalink
Added test to start container
Browse files Browse the repository at this point in the history
  • Loading branch information
villadalmine committed Aug 26, 2016
1 parent 5e3d22e commit 71bad8f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/image-test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,12 @@ load ../common
run bash -c "bin/build.sh"
[ $status -eq 0 ]
}
@test "Starting Docker Image $maintainer7$imagename" {
run bash -c "docker ps -a -f name=$imagename -q|wc -l"
if [ $output -eq 1 ]; then
skip "Can not start $imagename because exist a previous image with same name "
fi
run bash -c "bin/start.sh"
run bash -c "docker ps -f name=$imagename -q|wc -l"
[ $output -eq 1 ]
}

0 comments on commit 71bad8f

Please sign in to comment.