autotest: cleanup transition stable_version logic in post autotest world
BUG=chromium:1068918
TEST=run repair locally
Change-Id: I0f04e6b494170d63118c4ede9d8cf7e877a11267
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2146065
Tested-by: Garry Wang <[email protected]>
Reviewed-by: Gregory Nisbet <[email protected]>
Commit-Queue: Garry Wang <[email protected]>
diff --git a/server/afe_utils_unittest.py b/server/afe_utils_unittest.py
index 0afcf6e..9874de0 100644
--- a/server/afe_utils_unittest.py
+++ b/server/afe_utils_unittest.py
@@ -9,13 +9,6 @@
from autotest_lib.server import afe_utils
-class FakeConfigFromHost(object):
- def get_config_value(self, _namespace, item, **kargs):
- return {
- "stable_version_config_repo_enable": True,
- "stable_version_config_repo_opt_in_boards": ":all",
- }[item]
-
class FakeHostInfo(object):
def __init__(self, board, cros_stable_version, servo_cros_stable_version):
self._board = board
@@ -44,8 +37,7 @@
cros_stable_version="R1-2.3.4"
)
expected = "xxx-board-release/R1-2.3.4"
- config = FakeConfigFromHost()
- out = afe_utils.get_stable_cros_image_name_v2(info=host_info, _config_override=config)
+ out = afe_utils.get_stable_cros_image_name_v2(host_info=host_info)
self.assertEqual(out, expected)