diff options
author | Dan Albert <danalbert@google.com> | 2024-03-07 23:07:52 +0000 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2024-03-07 23:38:50 +0000 |
commit | b9245d9d80977de0d9f00ad8c57ab96bb7282dec (patch) | |
tree | 41364e1e438007d8332195cd9d20f8a39497919a | |
parent | 50b41058253447431545f8f3f3dbd7897a8e762e (diff) | |
download | external_updater-b9245d9d80977de0d9f00ad8c57ab96bb7282dec.tar.gz |
Fix broken test.
This test requires the proto module, so it has to be run with atest,
but it was added to the pytest directory, and wasn't added to the
Android.bp.
Bug: None
Test: make test # not the only broken test, so still fails
Change-Id: I6c116bda8cb3e25533e008356cbb4ca2e288ee3f
-rw-r--r-- | Android.bp | 15 | ||||
-rw-r--r-- | test_updater_utils.py (renamed from tests/test_updater_utils.py) | 0 |
2 files changed, 15 insertions, 0 deletions
@@ -156,6 +156,21 @@ python_test_host { }, } +// Same as above. Needs protobuf. +python_test_host { + name: "external_updater_updater_utils_test", + defaults: ["external_updater_test_defaults"], + main: "test_updater_utils.py", + srcs: ["test_updater_utils.py"], + libs: [ + "external_updater_lib", + "external_updater_test_lib", + ], + test_options: { + unit_test: true, + }, +} + // The tests in tests/endtoend are not built as a Soong module because we can't // run those tests via python_test_host. It's an end-to-end test so it needs to // run `repo`, but `repo init` will try to clone the real repo source (the thing diff --git a/tests/test_updater_utils.py b/test_updater_utils.py index 632ba9a..632ba9a 100644 --- a/tests/test_updater_utils.py +++ b/test_updater_utils.py |