def _read_test_info(filename): test_info_path = build_common.get_unittest_info_path(filename) if not os.path.exists(test_info_path): return None with open(test_info_path, 'r') as f: return json.load(f)
def _get_test_executable(test): # Although <test>.2.json, <test>.3.json, .. may also exist, they use the same # binary, so read <test>.1.json as a representative. unittest_info_path = build_common.get_unittest_info_path('%s.1.json' % test) with open(unittest_info_path) as f: return json.load(f)['variables']['in']