Lines Matching full:os

9 import os
95 os.mkdir(subdir)
119 os.remove(filename)
152 with open(os.path.join(outdir, "coverage.log"), "a") as coveragelog:
157 os.path.join(outdir, "coverage", "index.html")
160 os.path.join(outdir, "coverage.info")
163 os.path.join(outdir, "coverage", "coverage.xml")
166 os.path.join(outdir, "coverage", "coverage.csv")
169 os.path.join(outdir, "coverage", "coverage.txt")
172 os.path.join(outdir, "coverage", "coverage.coveralls.json")
175 os.path.join(outdir, "coverage", "coverage.sonarqube.xml")
265 coveragefile = os.path.join(outdir, "coverage.info")
266 ztestfile = os.path.join(outdir, "ztest.info")
273 os.path.join(self.base_dir, "tests", "ztest", "*"),
277 if os.path.exists(ztestfile) and os.path.getsize(ztestfile) > 0:
279 os.path.join(self.base_dir, "tests/ztest/test/*"),
296 "-output-directory", os.path.join(outdir, "coverage")] + files
347 coveragefile = os.path.join(outdir, "coverage.json")
348 ztestfile = os.path.join(outdir, "ztest.json")
375 if os.path.exists(ztestfile) and os.path.getsize(ztestfile) > 0:
380 subdir = os.path.join(outdir, "coverage")
381 os.makedirs(subdir, exist_ok=True)
387 "html": ["--html", os.path.join(subdir, "index.html"), "--html-details"],
388 "xml": ["--xml", os.path.join(subdir, "coverage.xml"), "--xml-pretty"],
389 "csv": ["--csv", os.path.join(subdir, "coverage.csv")],
390 "txt": ["--txt", os.path.join(subdir, "coverage.txt")],
391 "coveralls": ["--coveralls", os.path.join(subdir, "coverage.coveralls.json"),
393 "sonarqube": ["--sonarqube", os.path.join(subdir, "coverage.sonarqube.xml")]
415 zephyr_sdk_gcov_tool = os.path.join(
416 os.environ.get("ZEPHYR_SDK_INSTALL_DIR", default=""),
418 if os.environ.get("ZEPHYR_TOOLCHAIN_VARIANT") == "llvm":
419 llvm_path = os.environ.get("LLVM_TOOLCHAIN_PATH")
421 llvm_path = os.path.join(llvm_path, "bin")
424 gcov_lnk = os.path.join(options.outdir, f"gcov{llvm_cov_ext}")
426 os.symlink(llvm_cov, gcov_lnk)
432 elif os.path.exists(zephyr_sdk_gcov_tool):
446 coverage_tool.base_dir = os.path.abspath(options.coverage_basedir)