Tweak the CUJ scripts to make it work in CI.

Bug: 318706915
Test: manual test
Change-Id: I0982d1d724ec05aee7a0d6bdaa05497745421674
This commit is contained in:
Yu Liu
2024-01-17 21:30:53 +00:00
parent 7cd5b313f6
commit cda84245af
2 changed files with 20 additions and 7 deletions

View File

@@ -28,3 +28,15 @@ def get_root():
d = d.parent
if d == pathlib.Path("/"):
return None
def get_dist_dir():
dist_dir = os.getenv("DIST_DIR")
if dist_dir:
return pathlib.Path(dist_dir).resolve()
return get_out_dir().joinpath("dist")
def get_out_dir():
out_dir = os.getenv("OUT_DIR")
if not out_dir:
out_dir = "out"
return pathlib.Path(out_dir).resolve()