pw_unit_test: Minor improvements
* Align RUN output with PASS and FAIL.
* List pw_automatic_test_runner as an input to the test run target to
properly re-run on file modifications.
Change-Id: Ibbb6f90852fa91f52dd622064556137b2c7a4e57
diff --git a/pw_unit_test/py/pw_unit_test/test_runner.py b/pw_unit_test/py/pw_unit_test/test_runner.py
index 6516c0b..77a8463 100644
--- a/pw_unit_test/py/pw_unit_test/test_runner.py
+++ b/pw_unit_test/py/pw_unit_test/test_runner.py
@@ -134,7 +134,7 @@
total = str(len(self._tests))
test_counter = f'Test {idx:{len(total)}}/{total}'
- _LOG.info('%s: [RUN] %s', test_counter, test.name)
+ _LOG.info('%s: [ RUN] %s', test_counter, test.name)
command = [self._executable, test.file_path, *self._args]
try:
status = await pw_cli.process.run_async(command)
diff --git a/pw_unit_test/test.gni b/pw_unit_test/test.gni
index b55c22b..abb3098 100644
--- a/pw_unit_test/test.gni
+++ b/pw_unit_test/test.gni
@@ -58,6 +58,9 @@
deps = [
":$_test_target_name",
]
+ inputs = [
+ pw_automatic_test_runner,
+ ]
script = "$dir_pw_unit_test/py/pw_unit_test/test_runner.py"
args = [
"--runner",