From 9f33eaa7b7f246d68ea539f32cd74ecf8dfd5790 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Mon, 9 Mar 2026 22:20:52 +0100 Subject: =?UTF-8?q?updated=20chunk=E2=80=93block=20analyser=20(#818)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * create oplogs as they are imported * Improved logic for partial block analisys * unit tests for ChunkBlockAnalyser --- scripts/test_scripts/oplog-import-export-test.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/test_scripts/oplog-import-export-test.py b/scripts/test_scripts/oplog-import-export-test.py index 51593d5a9..b2a5ece6c 100644 --- a/scripts/test_scripts/oplog-import-export-test.py +++ b/scripts/test_scripts/oplog-import-export-test.py @@ -96,15 +96,17 @@ def check_prerequisites() -> None: def setup_project(port: int) -> None: - """Create the FortniteGame project and all oplogs on the server at the given port.""" + """Create the FortniteGame project on the server at the given port.""" print("--------- creating FortniteGame project") run([ZEN_EXE, "project-create", f"--hosturl=127.0.0.1:{port}", "FortniteGame", "--force-update"]) print() - for build in BUILDS: - print(f"--------- creating {build.name} oplog") - run([ZEN_EXE, "oplog-create", f"--hosturl=127.0.0.1:{port}", "FortniteGame", build.name, "--force-update"]) - print() + +def setup_oplog(port: int, build_name: str) -> None: + """Create the oplog in the FortniteGame project on the server at the given port.""" + print(f"--------- creating {build_name} oplog") + run([ZEN_EXE, "oplog-create", f"--hosturl=127.0.0.1:{port}", "FortniteGame", build_name, "--force-update"]) + print() def main() -> None: @@ -165,6 +167,8 @@ def main() -> None: setup_project(ZEN_PORT) for build in BUILDS: + setup_oplog(ZEN_PORT, build.name) + print(f"--------- importing {build.name} oplog") run([ ZEN_EXE, "oplog-import", @@ -206,6 +210,8 @@ def main() -> None: setup_project(ZEN_PORT) for build in BUILDS: + setup_oplog(ZEN_PORT, build.name) + print(f"--------- importing {build.name} oplog") run([ ZEN_EXE, "oplog-import", -- cgit v1.2.3