diff --git a/justfile b/justfile index df77e8d78..23c5aacd6 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,8 @@ SESSION := "cm12345-1" RUNNER := `command -v docker || command -v podman || true` +TEST_CONFIG := "tests/system_tests/config.yaml" + [doc('Start the example services via compose and run the blueapi server')] dev-server: compose serve @@ -26,11 +28,11 @@ compose +ARGS="up -d --no-recreate": init-example-services _check-runner serve *OPTS: #!/usr/bin/env bash source tests/system_tests/.env - uv run blueapi -c tests/system_tests/config.yaml {{ OPTS }} serve + uv run blueapi -c {{ TEST_CONFIG }} {{ OPTS }} serve [doc('Run a plan using the blueapi CLI')] run PLAN PARAMS: - uv run blueapi -c tests/system_tests/config.yaml controller run -i {{ SESSION }} {{ PLAN }} '{{ PARAMS }}' + uv run blueapi -c {{ TEST_CONFIG }} controller run -i {{ SESSION }} {{ PLAN }} '{{ PARAMS }}' [doc('Regenerate schemas, run pre-commit checks and type checking')] lint: @@ -58,7 +60,7 @@ repl: uv run --with ptpython ptpython -i <(cat << EOF from blueapi.client import BlueapiClient from blueapi.client.rest import ServiceUnavailableError - bc = BlueapiClient.from_config_file("tests/system_tests/config.yaml").with_instrument_session("cm12345-1") + bc = BlueapiClient.from_config_file("{{ TEST_CONFIG }}").with_instrument_session("cm12345-1") try: bc.login() except KeyboardInterrupt: @@ -74,4 +76,4 @@ repl: [doc('Stream documents from the stomp message bus - see blueapi controller listen')] listen FORMAT="full": - uv run blueapi -c tests/system_tests/config.yaml controller -o {{ FORMAT }} listen + uv run blueapi -c {{ TEST_CONFIG }} controller -o {{ FORMAT }} listen