Lines Matching refs:os
30 import os
61 if os.path.exists(".hdctester.conf"):
106 os.remove(".hdctester.conf")
112 fd = os.open(".hdctester.conf", os.O_WRONLY | os.O_CREAT, 0o755)
113 os.write(fd, json_str.encode())
114 os.close(fd)
196 cls.testcase_path = os.path.join(opt)
210 if os.path.isfile(path):
221 return os.path.join(GP.local_path, path)
271 local_path = os.path.join(GP.local_path, local)
278 local_path = os.path.join(GP.local_path, local)
285 app = os.path.join(GP.local_path, app)
365 path = os.path.abspath(path)
366 fd = os.open(path, os.O_WRONLY | os.O_CREAT, 0o755)
369 os.write(fd, os.urandom(1024))
371 os.close(fd)
374 current_path = os.getcwd()
375 os.mkdir(GP.local_path)
377 gen_file(os.path.join(GP.local_path, "empty"), 0)
380 gen_file(os.path.join(GP.local_path, "small"), 102400)
383 gen_file(os.path.join(GP.local_path, "large"), 2 * 1024 ** 3)
386 dir_path = os.path.join(GP.local_path, "normal_dir")
388 os.mkdir(dir_path)
389 gen_file(os.path.join(dir_path, "small2"), 102400)
392 dir_path = os.path.join(GP.local_path, "empty_dir")
394 os.mkdir(dir_path)
396 if os.path.exists("entry-default-signed-debug.hap"):
401 if os.path.exists("panalyticshsp-default-signed.hsp"):