コード例 #1
0
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)
コード例 #2
0
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']
コード例 #3
0
ファイル: run_unittest.py プロジェクト: epowers/arc
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)