pw_unit_test: Install python module before running
Ensures the pw_unit_test module is installed before running the test
runner script from the module.
Change-Id: I84148c955b351de406769da87a10853b45b753c5
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/77186
Reviewed-by: Wyatt Hepler <hepler@google.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
Commit-Queue: Armando Montanez <amontanez@google.com>
diff --git a/pw_unit_test/test.gni b/pw_unit_test/test.gni
index 46962c9..39f9dd5 100644
--- a/pw_unit_test/test.gni
+++ b/pw_unit_test/test.gni
@@ -230,8 +230,8 @@
deps = [ ":$_test_target_name" ]
inputs = [ pw_unit_test_AUTOMATIC_RUNNER ]
- script = "$dir_pw_unit_test/py/pw_unit_test/test_runner.py"
- python_deps = [ "$dir_pw_cli/py" ]
+ module = "pw_unit_test.test_runner"
+ python_deps = [ "$dir_pw_unit_test/py" ]
args = [
"--runner",
rebase_path(pw_unit_test_AUTOMATIC_RUNNER, root_build_dir),