MCPcopy Create free account
hub / github.com/FDio/vpp / post_vm_test_run

Function post_vm_test_run

test/run.py:154–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152
153
154def post_vm_test_run():
155 # Revert the ownership of certain directories from root to the
156 # original user after running in QEMU
157 print("Running post test cleanup tasks")
158 dirs = ["/tmp/vpp-failed-unittests", os.path.join(ws_root, "test", "__pycache__")]
159 dirs.extend(glob.glob("/tmp/vpp-unittest-*"))
160 dirs.extend(glob.glob("/tmp/api_post_mortem.*"))
161 user = os.getlogin()
162 for dir in dirs:
163 if os.path.exists(dir) and Path(dir).owner() != user:
164 cmd = ["sudo", "chown", "-R", "{0}:{0}".format(user), dir]
165 p = Popen(cmd, stdout=PIPE, stderr=STDOUT)
166 show_progress(p.stdout)
167
168
169def build_venv():

Callers 1

vm_test_runnerFunction · 0.85

Calls 4

printFunction · 0.85
PathClass · 0.85
show_progressFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected