mirror of
https://gitee.com/openharmony/arkcompiler_runtime_core
synced 2024-11-27 00:41:14 +00:00
Fix fdopen usage in urunner coverage.py
Issue: #IB3TR6 Signed-off-by: Denis Silakov <silakov.denis@huawei.com>
This commit is contained in:
parent
a11fdfc43a
commit
fb06699b44
@ -113,7 +113,7 @@ class LlvmCov:
|
||||
|
||||
def make_profdata_list_file(self) -> None:
|
||||
results = self.do_find(self.coverage_dir.profdata_dir, '*.profdata')
|
||||
with os.fdopen(os.open(self.coverage_dir.profdata_files_list_file, os.O_APPEND | os.O_CREAT, 0o755),
|
||||
with os.fdopen(os.open(self.coverage_dir.profdata_files_list_file, os.O_WRONLY | os.O_CREAT, 0o755),
|
||||
"a", encoding="utf-8") as the_file:
|
||||
for i in results:
|
||||
the_file.write(str(i) + '\n')
|
||||
|
Loading…
Reference in New Issue
Block a user