diff options
author | aarongreen <aarongreen@google.com> | 2023-08-11 15:00:11 +0000 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-08-11 15:00:11 +0000 |
commit | 63746a714b7ee28c9d67ac50a8125c87b8cb23a2 (patch) | |
tree | 6d837e4fc623da7866799bacffe73ba7e0bcebfc /pw_unit_test | |
parent | c60df17b2c184ea2fa95384d6c86099617ecb1c3 (diff) | |
download | pigweed-63746a714b7ee28c9d67ac50a8125c87b8cb23a2.tar.gz |
pw_build: Add integration test metadata
This CL modifies the definition of existing integration tests to use
`pw_python_action_test` in order to generate appropriate metadata.
Change-Id: I1be90bdd724cc1b300f52c56968b521d99016ee7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/154553
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Aaron Green <aarongreen@google.com>
Diffstat (limited to 'pw_unit_test')
-rw-r--r-- | pw_unit_test/py/BUILD.gn | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/pw_unit_test/py/BUILD.gn b/pw_unit_test/py/BUILD.gn index 57886200a..c29196e4e 100644 --- a/pw_unit_test/py/BUILD.gn +++ b/pw_unit_test/py/BUILD.gn @@ -15,6 +15,7 @@ import("//build_overrides/pigweed.gni") import("$dir_pw_build/python.gni") +import("$dir_pw_build/python_action_test.gni") import("$dir_pw_rpc/internal/integration_test_ports.gni") pw_python_package("py") { @@ -37,7 +38,7 @@ pw_python_package("py") { mypy_ini = "$dir_pigweed/.mypy.ini" } -pw_python_script("rpc_service_test") { +pw_python_action_test("rpc_service_test") { sources = [ "rpc_service_test.py" ] python_deps = [ ":py", @@ -45,16 +46,11 @@ pw_python_script("rpc_service_test") { "$dir_pw_rpc/py", "$dir_pw_status/py", ] - pylintrc = "$dir_pigweed/.pylintrc" - mypy_ini = "$dir_pigweed/.mypy.ini" - - action = { - args = [ - "--port=$pw_unit_test_RPC_SERVICE_TEST_PORT", - "--test-server-command", - "<TARGET_FILE(..:test_rpc_server)>", - ] - deps = [ "..:test_rpc_server" ] - stamp = true - } + args = [ + "--port=$pw_unit_test_RPC_SERVICE_TEST_PORT", + "--test-server-command", + "<TARGET_FILE(..:test_rpc_server)>", + ] + deps = [ "..:test_rpc_server" ] + tags = [ "integration" ] } |