Lines Matching refs:os
19 import os
33 FLAGS = os.O_WRONLY | os.O_APPEND | os.O_CREAT
53 file_path = os.path.join(longcommand_path, sh_file_name)
55 with os.fdopen(os.open(file_path, FLAGS, MODES), 'a') as file_desc:
72 file_dir = suite_file.split("distributedtest")[1].strip(os.sep).split(os.sep)[0]
74 cxx_cov_path = os.path.abspath(os.path.join(
83 if not os.path.exists(cxx_cov_path):
84 os.makedirs(cxx_cov_path)
87 src_file_tar = os.path.join(DEVICE_TEST_PATH, "%s.tar.gz" % target_name)
89 tar_path = os.path.join(cxx_cov_path, "%s.tar.gz" % target_name)
93 os.remove(tar_path)
122 case_dir, file_name = os.path.split(suite_file)
123 dst_dir = case_dir.split("distributedtest")[1].strip(os.sep)
124 os.makedirs(os.path.join(result_path, "temp", dst_dir), exist_ok=True)
128 dir=os.path.join(result_path, "temp", dst_dir))
159 os.path.join(DEVICE_TEST_PATH, sh_file_name),
160 os.path.join(DEVICE_TEST_PATH, "agent.log"))
163 os.path.join(DEVICE_TEST_PATH, sh_file_name))
169 if os.path.exists(long_command_path):
170 os.remove(long_command_path)