github.com/sijibomii/docker@v0.0.0-20231230191044-5cf6ca554647/hack/make/test-docker-py (about)

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