Skip to content

Commit

Permalink
Add option to run UDK tests without starting the echo server
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Dec 19, 2023
1 parent fcdfaef commit bd48b50
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/UDKTests/setup_udk_build_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,18 @@ async def main():
help="path to umb_echo_server executable",
default="umb_echo_server",
)
ap.add_argument(
"--no-echo-server",
help="do not start umb_echo_server, assume already running",
action="store_true",
)

args = ap.parse_args()
progress_bar = not args.no_progress_bar
use_shell = args.use_shell
add_fw_rules = args.add_fw_rules
echo_server_path = Path(args.echo_server_path).resolve()
no_echo_server = args.no_echo_server

hard_reset = False
cache = Cache()
Expand Down Expand Up @@ -625,7 +631,8 @@ async def main():
use_shell=use_shell,
)

await start_umb_echo_server(echo_server_path)
if not no_echo_server:
await start_umb_echo_server(echo_server_path)

ec += await run_udk_server(
watcher=watcher,
Expand All @@ -635,7 +642,8 @@ async def main():
use_shell=use_shell,
)

await stop_umb_echo_server()
if not no_echo_server:
await stop_umb_echo_server()

obs.stop()
obs.join(timeout=UDK_TEST_TIMEOUT)
Expand Down

0 comments on commit bd48b50

Please sign in to comment.