From b29c8eaf2a2f41f96a4083e6555ca14e29061775 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 5 Nov 2018 12:59:21 +0000 Subject: [PATCH] tests: allow passing -vvv to build_docker_images. --- tests/image_prep/build_docker_images.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/image_prep/build_docker_images.py b/tests/image_prep/build_docker_images.py index 94a17104..0ab722f4 100755 --- a/tests/image_prep/build_docker_images.py +++ b/tests/image_prep/build_docker_images.py @@ -6,9 +6,10 @@ Build the Docker images used for testing. import commands import os -import tempfile import shlex import subprocess +import sys +import tempfile BASEDIR = os.path.dirname(os.path.abspath(__file__)) @@ -42,7 +43,7 @@ with tempfile.NamedTemporaryFile() as fp: try: subprocess.check_call( cwd=BASEDIR, - args=sh('ansible-playbook -i %s -c docker setup.yml', fp.name), + args=sh('ansible-playbook -i %s -c docker setup.yml', fp.name) + sys.argv[1:], ) for container_id, label in label_by_id.items():