diff options
Diffstat (limited to 'scripts/test_scripts/oplog-import-export-test.py')
| -rw-r--r-- | scripts/test_scripts/oplog-import-export-test.py | 16 |
1 files changed, 11 insertions, 5 deletions
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", |