From 89db46b913c91e1e5ecc0e019115ad3c88ebee28 Mon Sep 17 00:00:00 2001 From: Zach Nation Date: Mon, 29 Apr 2019 15:24:20 -0700 Subject: [PATCH] Strip docker image name (#1814) Otherwise it contains a `\n` and breaks. --- scripts/run_cpp_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_cpp_tests.py b/scripts/run_cpp_tests.py index ce8169de24..9cea8f0e48 100755 --- a/scripts/run_cpp_tests.py +++ b/scripts/run_cpp_tests.py @@ -12,7 +12,7 @@ # The build image version that will be used for testing SCRIPT_DIR=os.path.dirname(__file__) WORKSPACE=os.path.abspath(os.path.join(SCRIPT_DIR, '..')) -TC_BUILD_IMAGE_1004=subprocess.check_output(['bash', os.path.join(WORKSPACE, 'scripts', 'get_docker_image.sh'), '--ubuntu=10.04']) +TC_BUILD_IMAGE_1004=subprocess.check_output(['bash', os.path.join(WORKSPACE, 'scripts', 'get_docker_image.sh'), '--ubuntu=10.04']).strip() def run_in_docker(cmd, workdir='/build'): if not(isinstance(cmd, list)):