Cope with changes in docker-py structure.
Tests are now in a different directory, and get sharded by module rather than individually.
This commit is contained in:
1 parent
af3fc82b77
commit
804e6ba586
1 file changed
+3
-3
@@ -13,14 +13,14 @@ docker_py_test() {
|
|||||||
docker_on $HOST1 pull joffrey/docker-py >/dev/null
|
docker_on $HOST1 pull joffrey/docker-py >/dev/null
|
||||||
CANDIDATES=$(docker_on $HOST1 run \
|
CANDIDATES=$(docker_on $HOST1 run \
|
||||||
joffrey/docker-py \
|
joffrey/docker-py \
|
||||||
py.test --collect-only tests/integration_test.py \
|
py.test --collect-only tests/integration/ \
|
||||||
| sed -En "s/\s*<UnitTestCase '([[:alpha:]]+)'>/\1/p")
|
| sed -En "s/\s*<Module '([[:print:]]+)'>/\1/p")
|
||||||
|
|
||||||
i=0
|
i=0
|
||||||
TESTS=
|
TESTS=
|
||||||
for test in $CANDIDATES; do
|
for test in $CANDIDATES; do
|
||||||
if [ $(($i % $TOTAL_SHARDS)) -eq $SHARD ]; then
|
if [ $(($i % $TOTAL_SHARDS)) -eq $SHARD ]; then
|
||||||
TESTS="$TESTS tests/integration_test.py::$test"
|
TESTS="$TESTS $test"
|
||||||
fi
|
fi
|
||||||
i=$(($i + 1))
|
i=$(($i + 1))
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in new issue
Block a user