test-docker-py 559 B

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