github.com/ssdev-go/moby@v17.12.1-ce-rc2+incompatible/hack/make/test-docker-py (about)

     1  #!/usr/bin/env bash
     2  set -e
     3  
     4  source hack/make/.integration-test-helpers
     5  
     6  # subshell so that we can export PATH without breaking other things
     7  (
     8  	bundle .integration-daemon-start
     9  
    10  	dockerPy='/docker-py'
    11  	[ -d "$dockerPy" ] || {
    12  		dockerPy="$DEST/docker-py"
    13  		git clone https://github.com/docker/docker-py.git "$dockerPy"
    14  	}
    15  
    16  	# exporting PYTHONPATH to import "docker" from our local docker-py
    17  	test_env PYTHONPATH="$dockerPy" py.test --junitxml="$DEST/results.xml" "$dockerPy/tests/integration"
    18  
    19  	bundle .integration-daemon-stop
    20  ) 2>&1 | tee -a "$DEST/test.log"