Skip to content
Snippets Groups Projects
Commit f303426f authored by Yong Ni's avatar Yong Ni
Browse files

Replaced 'docker run' with 'gcloud docker -- run' to take care of docker image downloading.

parent b7ea4ab4
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,7 @@ from specific releases/tag, are used to test version compatiblity between gRPC r ...@@ -38,6 +38,7 @@ from specific releases/tag, are used to test version compatiblity between gRPC r
- The output for all the test cases is recorded in a junit style xml file (default to 'report.xml'). - The output for all the test cases is recorded in a junit style xml file (default to 'report.xml').
## Instructions for running test cases against a GCR image manually ## Instructions for running test cases against a GCR image manually
- Download docker image from GCR. For example: `gcloud docker -- pull gcr.io/grpc-testing/grpc_interop_go1.7:master`.
- Run test cases by specifying `docker_image` variable inline with the test case script created above. - Run test cases by specifying `docker_image` variable inline with the test case script created above.
For example: For example:
- `docker_image=gcr.io/grpc-testing/grpc_interop_go1.7:master ./testcases/go__master` will run go__master test cases against `go1.7` with gRPC release `master` docker image in GCR. - `docker_image=gcr.io/grpc-testing/grpc_interop_go1.7:master ./testcases/go__master` will run go__master test cases against `go1.7` with gRPC release `master` docker image in GCR.
......
...@@ -125,6 +125,7 @@ def find_test_cases(lang, release): ...@@ -125,6 +125,7 @@ def find_test_cases(lang, release):
# Only line start with 'docker run' are test cases. # Only line start with 'docker run' are test cases.
for line in f.readlines(): for line in f.readlines():
if line.startswith('docker run'): if line.startswith('docker run'):
line = line.replace('docker run', 'gcloud docker -- run')
m = re.search('--test_case=(.*)"', line) m = re.search('--test_case=(.*)"', line)
shortname = m.group(1) if m else 'unknown_test' shortname = m.group(1) if m else 'unknown_test'
spec = jobset.JobSpec(cmdline=line, spec = jobset.JobSpec(cmdline=line,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment