Skip to content

Commit

Permalink
Add and use a DOCKER prereq
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
  • Loading branch information
chriscool committed Jan 10, 2016
1 parent d356ed0 commit 1fbbd1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions test/sharness/lib/test-lib.sh
Expand Up @@ -41,6 +41,7 @@ SHARNESS_LIB="lib/sharness/sharness.sh"
# grab + output options
test "$TEST_NO_FUSE" != 1 && test_set_prereq FUSE
test "$TEST_EXPENSIVE" = 1 && test_set_prereq EXPENSIVE
type docker && test_set_prereq DOCKER

if test "$TEST_VERBOSE" = 1; then
echo '# TEST_VERBOSE='"$TEST_VERBOSE"
Expand Down
9 changes: 6 additions & 3 deletions test/sharness/t0300-docker-image.sh
Expand Up @@ -8,9 +8,12 @@ test_description="Test docker image"

. lib/test-lib.sh

test_expect_success "docker is installed" '
type docker
'
# if in travis CI on OSX, docker is not available
if ! test_have_prereq DOCKER; then
skip_all='skipping docker tests, docker not available'

test_done
fi

test_expect_success "'docker --version' works" '
docker --version >actual
Expand Down

0 comments on commit 1fbbd1d

Please sign in to comment.