autotest: move constants to common_lib
This file gets imported from lots of server-side tests and
infrastructure so it shouldn't be hiding in client/cros. This
moves the file and fixes all imports.
BUG=chromium:485834
TEST=run many tests, make sure there are no problems importing
constants
Change-Id: I5c2b2a0bef6ebc998e62f40162a6ec9cc4436480
Reviewed-on: https://chromium-review.googlesource.com/291302
Trybot-Ready: Eric Caruso <ejcaruso@chromium.org>
Commit-Queue: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Chris Sosa <sosa@google.com>
diff --git a/server/cros/bluetooth/bluetooth_device.py b/server/cros/bluetooth/bluetooth_device.py
index 033b9d2..0058aa4 100644
--- a/server/cros/bluetooth/bluetooth_device.py
+++ b/server/cros/bluetooth/bluetooth_device.py
@@ -4,7 +4,7 @@
import json
-from autotest_lib.client.cros import constants
+from autotest_lib.client.common_lib.cros import constants
from autotest_lib.server import autotest
diff --git a/server/cros/bluetooth/bluetooth_tester.py b/server/cros/bluetooth/bluetooth_tester.py
index e3e2b50..0ebe929 100644
--- a/server/cros/bluetooth/bluetooth_tester.py
+++ b/server/cros/bluetooth/bluetooth_tester.py
@@ -5,7 +5,7 @@
import base64
import json
-from autotest_lib.client.cros import constants
+from autotest_lib.client.common_lib.cros import constants
from autotest_lib.server import autotest
from autotest_lib.server import hosts
from autotest_lib.server.cros import dnsname_mangler
diff --git a/server/cros/interactive_client.py b/server/cros/interactive_client.py
index 03e324d..0865621 100644
--- a/server/cros/interactive_client.py
+++ b/server/cros/interactive_client.py
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from autotest_lib.client.cros import constants
+from autotest_lib.client.common_lib.cros import constants
from autotest_lib.server import autotest
diff --git a/server/cros/multimedia/remote_facade_factory.py b/server/cros/multimedia/remote_facade_factory.py
index a3e28cc..e69fdc3 100644
--- a/server/cros/multimedia/remote_facade_factory.py
+++ b/server/cros/multimedia/remote_facade_factory.py
@@ -10,7 +10,7 @@
import sys
from autotest_lib.client.common_lib.cros import retry
-from autotest_lib.client.cros import constants
+from autotest_lib.client.common_lib.cros import constants
from autotest_lib.server import autotest
from autotest_lib.server.cros.multimedia import audio_facade_adapter
from autotest_lib.server.cros.multimedia import display_facade_adapter
diff --git a/server/cros/network/apmanager_service_provider.py b/server/cros/network/apmanager_service_provider.py
index be6cbd8..db53628 100644
--- a/server/cros/network/apmanager_service_provider.py
+++ b/server/cros/network/apmanager_service_provider.py
@@ -3,7 +3,7 @@
# found in the LICENSE file.
from autotest_lib.client.common_lib.cros.network import apmanager_constants
-from autotest_lib.client.cros import constants
+from autotest_lib.client.common_lib.cros import constants
from autotest_lib.server import autotest
from autotest_lib.server.cros.network import hostap_config
diff --git a/server/cros/network/wifi_cell_test_base.py b/server/cros/network/wifi_cell_test_base.py
index 036a8bd..7bc2059 100644
--- a/server/cros/network/wifi_cell_test_base.py
+++ b/server/cros/network/wifi_cell_test_base.py
@@ -8,7 +8,7 @@
from autotest_lib.client.common_lib import error
from autotest_lib.client.common_lib import utils
from autotest_lib.client.common_lib.cros.network import xmlrpc_datatypes
-from autotest_lib.client.cros import constants
+from autotest_lib.client.common_lib.cros import constants
from autotest_lib.server import frontend
from autotest_lib.server import site_utils
from autotest_lib.server import test
diff --git a/server/cros/network/wifi_client.py b/server/cros/network/wifi_client.py
index 2f9a332..f335b63 100644
--- a/server/cros/network/wifi_client.py
+++ b/server/cros/network/wifi_client.py
@@ -15,7 +15,7 @@
from autotest_lib.client.common_lib.cros.network import interface
from autotest_lib.client.common_lib.cros.network import iw_runner
from autotest_lib.client.common_lib.cros.network import ping_runner
-from autotest_lib.client.cros import constants
+from autotest_lib.client.common_lib.cros import constants
from autotest_lib.server import autotest
from autotest_lib.server import frontend
from autotest_lib.server import site_linux_system