MCPcopy Create free account
hub / github.com/modelscope/modelscope / save_test_result

Function save_test_result

tests/run.py:182–189  ·  view source on GitHub ↗
(df, args)

Source from the content-addressed store, hash-verified

180
181
182def save_test_result(df, args):
183 if args.result_dir is not None:
184 file_name = str(int(datetime.datetime.now().timestamp() * 1000))
185 os.umask(0)
186 Path(args.result_dir).mkdir(mode=0o777, parents=True, exist_ok=True)
187 Path(os.path.join(args.result_dir, file_name)).touch(
188 mode=0o666, exist_ok=True)
189 df.to_pickle(os.path.join(args.result_dir, file_name))
190
191
192def run_command(cmd):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…