mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
[Other] ab_engine.py: start engine logs empty instead of appending (#4545)
This commit is contained in:
1 parent
f08ba0d1a1
commit
92a0563b92
1 file changed
+1
@@ -94,6 +94,7 @@ def main() -> int:
|
||||
cfg["args"] = list(base["args"]) + e.pop("xargs").split(";")
|
||||
cfg["port"] = a.port
|
||||
cfg["log"] = str(Path(tempfile.gettempdir()) / f"ab_{name}_r{rnd}.log")
|
||||
Path(cfg["log"]).write_text("", encoding="utf-8") # do not append to a previous A/B run (#4545)
|
||||
cpath = Path(tempfile.gettempdir()) / f"ab_{name}.json"
|
||||
cpath.write_text(json.dumps(cfg, indent=1))
|
||||
penv = dict(os.environ, **e)
|
||||
|
||||
Reference in new issue
Block a user