Pass additional arguments to tox in test_docker (#7591)

This commit is contained in:
Marc Egli 2017-05-15 08:21:39 +02:00 committed by Paulus Schoutsen
parent e1a4d51fa2
commit 6d245c43fc

View file

@ -1,5 +1,8 @@
#!/bin/sh
# Executes the tests with tox in a docker container.
# Every argment is passed to tox to allow running only a subset of tests.
# The following example will only run media_player tests:
# ./test_docker -- tests/components/media_player/
# Stop on errors
set -e
@ -10,4 +13,4 @@ docker build -t home-assistant-test -f virtualization/Docker/Dockerfile.dev .
docker run --rm \
-v `pwd`/.tox/:/usr/src/app/.tox/ \
-t -i home-assistant-test \
tox -e py36
tox -e py36 ${@:2}