Skip to content
This repository was archived by the owner on Mar 28, 2018. It is now read-only.

Commit 271223a

Browse files
committed
tests: Skip docker cp integration test for devicemapper storage
docker cp is not expected to work while using block device instead of the overlay file system. Skip docker cp test in case of devicemapper storage driver. Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
1 parent 9b91166 commit 271223a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/integration/docker/cp.bats

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ setup() {
3434
content="test"
3535
testfile=$(mktemp --tmpdir="$BATS_TMPDIR" --suffix=-cor-test)
3636
$DOCKER_EXE run --name $container -tid ubuntu bash
37+
driver=$($DOCKER_EXE inspect --format '{{ .GraphDriver.Name }}' $container)
38+
if [ "$driver" == "devicemapper" ] ; then
39+
$DOCKER_EXE rm -f $container
40+
skip
41+
fi
3742
echo $content > $testfile
3843
$DOCKER_EXE cp $testfile $container:/root/
3944
$DOCKER_EXE exec -i $container bash -c "ls /root/$(basename $testfile)"

0 commit comments

Comments
 (0)