#!/bin/bash
set -e

TEST_OPTS=
# https://github.com/docker/docker-py/issues/1478
TEST_OPTS="$TEST_OPTS --deselect=tests/integration/models_containers_test.py::ContainerCollectionTest::test_run_with_networking_config"
TEST_OPTS="$TEST_OPTS --deselect=tests/integration/api_container_test.py::AttachContainerTest::test_run_container_reading_socket_ws"
# TODO: the following tests exit with "Cannot autolaunch D-Bus without X11 $DISPLAY"
#  it needs to depend on "golang-docker-credential-helpers, pass, gnupg2"
#  and some setup is required.
TEST_OPTS="$TEST_OPTS --deselect=tests/integration/credentials/store_test.py"
py.test-3 $TEST_OPTS tests/integration/
