aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar adelez <adelez@google.com>2017-10-25 13:32:25 -0700
committerGravatar GitHub <noreply@github.com>2017-10-25 13:32:25 -0700
commit255c590bc62c4f2d74804631df6784bc9b023fb0 (patch)
treef34637a6774b583f466e119e91da080cbe15667b /tools
parent7fd9623612698da406e24eefb49ef8ad96ab1401 (diff)
parent0c4e14f0d440c4ec29e5f33014c45df59e369337 (diff)
Merge pull request #13092 from adelez/fix
Do not reuse job_specs now that we incorporate release info in the sh…
Diffstat (limited to 'tools')
-rwxr-xr-xtools/interop_matrix/run_interop_matrix_tests.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/interop_matrix/run_interop_matrix_tests.py b/tools/interop_matrix/run_interop_matrix_tests.py
index d037e13921..bb7a8647c7 100755
--- a/tools/interop_matrix/run_interop_matrix_tests.py
+++ b/tools/interop_matrix/run_interop_matrix_tests.py
@@ -122,15 +122,13 @@ def find_all_images_for_lang(lang):
return images
# caches test cases (list of JobSpec) loaded from file. Keyed by lang and runtime.
-_loaded_testcases = {}
def find_test_cases(lang, release, suite_name):
"""Returns the list of test cases from testcase files per lang/release."""
file_tmpl = os.path.join(os.path.dirname(__file__), 'testcases/%s__%s')
+ testcase_release = release
if not os.path.exists(file_tmpl % (lang, release)):
- release = 'master'
- testcases = file_tmpl % (lang, release)
- if lang in _loaded_testcases.keys() and release in _loaded_testcases[lang].keys():
- return _loaded_testcases[lang][release]
+ testcase_release = 'master'
+ testcases = file_tmpl % (lang, testcase_release)
job_spec_list=[]
try:
@@ -155,9 +153,6 @@ def find_test_cases(lang, release, suite_name):
do_newline=True)
except IOError as err:
jobset.message('FAILED', err, do_newline=True)
- if lang not in _loaded_testcases.keys():
- _loaded_testcases[lang] = {}
- _loaded_testcases[lang][release]=job_spec_list
return job_spec_list
_xml_report_tree = report_utils.new_junit_xml_tree()