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

Function set_logging

test/run.py:200–205  ·  view source on GitHub ↗
(test_data_dir, test_name)

Source from the content-addressed store, hash-verified

198
199
200def set_logging(test_data_dir, test_name):
201 Path(test_data_dir).mkdir(exist_ok=True)
202 log_file = "vm_{0}_{1}.log".format(test_name, str(time.time())[-5:])
203 filename = "{0}/{1}".format(test_data_dir, log_file)
204 Path(filename).touch()
205 logging.basicConfig(filename=filename, level=logging.DEBUG)
206
207
208def run_tests_in_venv(env):

Callers 1

run.pyFile · 0.85

Calls 2

PathClass · 0.85
formatMethod · 0.80

Tested by

no test coverage detected