test-docker-py 476 B

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