MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / RunATest

Function RunATest

scripts/github_ci_linux.py:97–109  ·  view source on GitHub ↗
(vt_cmd, vt_env)

Source from the content-addressed store, hash-verified

95
96ret_code = 0
97def RunATest(vt_cmd, vt_env):
98 try:
99 proc = subprocess.call(vt_cmd.split(" "), env=vt_env)
100 #print('Return Code "%s"'% (proc))
101 except subprocess.CalledProcessError as proc_error:
102 print('Command "%s" failed with return code %s' % (' '.join(proc_error.cmd), proc_error.returncode))
103 except Exception as unknown_error:
104 print('An unkown error occured: %s', unknown_error)
105
106 if (proc != 0):
107 global ret_code
108 ret_code = proc
109 print('Command "%s" failed with return code %s' % (vt_cmd, proc))
110
111# Run the tests
112def RunVTTests(args):

Callers 1

RunVTTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected