Lines Matching refs:os
19 import os
23 FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL
32 result_rootpath = os.environ.get('PYTEST_RESULTPATH')
33 findkey = os.sep + "tests" + os.sep
34 filedir, _ = os.path.split(testsuit_path)
38 pos1 = subpath.find(os.sep)
40 subpath = subpath[pos1 + len(os.sep):]
41 result_path = os.path.join(result_rootpath, "result", subpath)
43 result_path = os.path.join(result_rootpath, "result")
45 result_path = os.path.join(result_rootpath, "result")
47 if not os.path.exists(result_path):
48 os.makedirs(result_path)
65 pos = phone_res_dir.find(os.sep + "tests" + os.sep)
69 prefix_path = os.path.abspath(os.path.dirname(prefix_path))
70 current_dir = os.path.join(prefix_path, product_form_name,
72 if not os.path.exists(current_dir):
87 if not os.path.exists(savepath):
88 with os.fdopen(os.open(savepath, FLAGS, MODES), 'w') as file_desc: