github.com/jogo/docker@v1.7.0-rc1/hack/make/test-docker-py (about)

     1  #!/bin/bash
     2  set -e
     3  
     4  DEST=$1
     5  
     6  # subshell so that we can export PATH without breaking other things
     7  (
     8  	source "${MAKEDIR}/.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" python "$dockerPy/tests/integration_test.py"
    18  
    19  	source "${MAKEDIR}/.integration-daemon-stop"
    20  ) 2>&1 | tee -a "$DEST/test.log"