[autotest] Continuing refactor of dynamic_suite code; splitting monster files!
Split the biiiiig dynamic_suite.py and dynamic_suite_unittest.py into separate
files for Reimager and Suite. Adjust imports to compensate.
BUG=chromium-os:30266
TEST=unit
TEST=successful run_suite.py run
TEST=suite_enumerator.py, suite_preprocessor.py,
Change-Id: I0457053a7ae1422970138619a64edbcfbbc338bc
Reviewed-on: https://gerrit.chromium.org/gerrit/30457
Tested-by: Chris Masone <[email protected]>
Reviewed-by: Scott Zawalski <[email protected]>
Commit-Ready: Chris Masone <[email protected]>
diff --git a/server/site_crashcollect.py b/server/site_crashcollect.py
index ed1d6dd..d8869d2 100644
--- a/server/site_crashcollect.py
+++ b/server/site_crashcollect.py
@@ -8,7 +8,7 @@
from autotest_lib.client.common_lib import utils as client_utils
from autotest_lib.client.common_lib.cros import dev_server
from autotest_lib.client.cros import constants
-from autotest_lib.server.cros import dynamic_suite
+from autotest_lib.server.cros.dynamic_suite.constants import JOB_BUILD_KEY
from autotest_lib.server import utils
def generate_minidump_stacktrace(minidump_path):
@@ -40,13 +40,13 @@
# First, look up what build we tested. If we can't find this, we can't
# get the right debug symbols, so we might as well give up right now.
keyvals = client_utils.read_keyval(resultdir)
- if dynamic_suite.JOB_BUILD_KEY not in keyvals:
+ if JOB_BUILD_KEY not in keyvals:
raise dev_server.DevServerException(
'Cannot determine build being tested.')
devserver = dev_server.DevServer.create()
trace_text = devserver.symbolicate_dump(
- minidump_path, keyvals[dynamic_suite.JOB_BUILD_KEY])
+ minidump_path, keyvals[JOB_BUILD_KEY])
if not trace_text:
raise dev_server.DevServerException('Unknown error!!')
with open(minidump_path + '.txt', 'w') as trace_file: