diff options
author | Adin Scannell <ascannell@google.com> | 2020-04-13 12:47:32 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-13 12:48:38 -0700 |
commit | aa75a3da5188d8f62d00fc6590708ca4886526b4 (patch) | |
tree | b331500f4b84701a512b445576b2f7ef1e00cad8 /benchmarks/runner/__init__.py | |
parent | 6a4d17a31dc209afbbca66e871a7c6dc299c167b (diff) |
Fix build.sh and VM targets.
PiperOrigin-RevId: 306289643
Diffstat (limited to 'benchmarks/runner/__init__.py')
-rw-r--r-- | benchmarks/runner/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks/runner/__init__.py b/benchmarks/runner/__init__.py index ca785a148..fc59cf505 100644 --- a/benchmarks/runner/__init__.py +++ b/benchmarks/runner/__init__.py @@ -19,6 +19,7 @@ import logging import pkgutil import pydoc import re +import subprocess import sys import types from typing import List @@ -125,9 +126,8 @@ def run_gcp(ctx, image_file: str, zone_file: str, internal: bool, """Runs all benchmarks on GCP instances.""" # Resolve all files. - image = open(image_file).read().rstrip() - zone = open(zone_file).read().rstrip() - + image = subprocess.check_output([image_file]).rstrip() + zone = subprocess.check_output([zone_file]).rstrip() key_file = harness.make_key() producer = gcloud_producer.GCloudProducer( |