[autotest] Disable sysinfo in provision action.
Disable post-test and per iteration sysinfo when provisioning
a cros version.
Provision special task doesn't call control file of
provision_Autoupdate. To really disable sysinfo, we need to do it
in provision action.
TEST=run a dummy suite and observe post-test sysinfo and
per iteration sysinfo are disabled.
BUG=chromium:426141
Change-Id: Iffedff626035e1565b75e8fd84cab38c34c5a992
Reviewed-on: https://chromium-review.googlesource.com/245805
Tested-by: Fang Deng <fdeng@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
diff --git a/server/cros/provision.py b/server/cros/provision.py
index 36f1351..b8dd8ed 100644
--- a/server/cros/provision.py
+++ b/server/cros/provision.py
@@ -146,7 +146,13 @@
# Create some way to discover and register provisioning tests so that we
# don't need to hand-maintain a list of all of them.
_actions = {
- CROS_VERSION_PREFIX: actionables.TestActionable('provision_AutoUpdate'),
+ CROS_VERSION_PREFIX: actionables.TestActionable(
+ 'provision_AutoUpdate',
+ extra_kwargs={'disable_sysinfo': False,
+ 'disable_before_test_sysinfo': False,
+ 'disable_before_iteration_sysinfo': True,
+ 'disable_after_test_sysinfo': True,
+ 'disable_after_iteration_sysinfo': True}),
FW_VERSION_PREFIX: actionables.TestActionable(
'provision_FirmwareUpdate'),
}