mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Pass additional arguments to tox in test_docker (#7591)
This commit is contained in:
parent
e1a4d51fa2
commit
6d245c43fc
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user