installer: Fix active_test_list.json path.
Change the path of active_test_list.json from py/config to
py/test/test_lists.
BUG=chromium:899136
TEST=manually test on DUT, successfully switch test list from goofy.
Change-Id: I7b7a8daf23a3f8e840d98edf97279ddec08aaa0a
Reviewed-on: https://chromium-review.googlesource.com/1414216
Commit-Ready: Cheng-Han Yang <chenghan@chromium.org>
Tested-by: Cheng-Han Yang <chenghan@chromium.org>
Reviewed-by: Yong Hong <yhong@google.com>
diff --git a/py/toolkit/installer.py b/py/toolkit/installer.py
index b228bf0..437b7e9 100755
--- a/py/toolkit/installer.py
+++ b/py/toolkit/installer.py
@@ -24,6 +24,7 @@
import factory_common # pylint: disable=unused-import
from cros.factory.test.env import paths
+from cros.factory.test.test_lists import manager
from cros.factory.tools import install_symlinks
from cros.factory.utils import file_utils
from cros.factory.utils import json_utils
@@ -199,8 +200,8 @@
def _SetActiveTestList(self):
"""Set the active test list for Goofy."""
if self._active_test_list is not None:
- path = os.path.join(self._usr_local_dest, 'factory', 'py', 'config',
- 'active_test_list.json')
+ path = os.path.join(self._usr_local_dest, 'factory',
+ manager.ACTIVE_TEST_LIST_CONFIG_RELPATH)
json_utils.DumpFile(path, {'id': self._active_test_list})
def _EnableApp(self, app, enabled):