deploytask: add SetupLabstation action for deploy task.
BUG=chromium:1024967
TEST=unittest
Change-Id: Ie4ee4537c418d514a68d206583ded5f53c99029e
diff --git a/src/lucifer/autotest/dutprep/action.go b/src/lucifer/autotest/dutprep/action.go
index 479b521..311cedf 100644
--- a/src/lucifer/autotest/dutprep/action.go
+++ b/src/lucifer/autotest/dutprep/action.go
@@ -21,6 +21,7 @@
InstallTestImage
InstallFirmware
VerifyRecoveryMode
+ SetupLabstation
UpdateLabel
)
@@ -69,6 +70,7 @@
InstallTestImage,
InstallFirmware,
VerifyRecoveryMode,
+ SetupLabstation,
UpdateLabel,
}
var actionArgumentSequence = [...]string{
@@ -76,6 +78,7 @@
"install-test-image",
"install-firmware",
"verify-recovery-mode",
+ "setup-labstation",
"update-label",
}
diff --git a/src/lucifer/autotest/dutprep/action_string.go b/src/lucifer/autotest/dutprep/action_string.go
index 6538df1..ab31283 100644
--- a/src/lucifer/autotest/dutprep/action_string.go
+++ b/src/lucifer/autotest/dutprep/action_string.go
@@ -17,12 +17,13 @@
_ = x[InstallTestImage-2]
_ = x[InstallFirmware-3]
_ = x[VerifyRecoveryMode-4]
- _ = x[UpdateLabel-5]
+ _ = x[SetupLabstation-5]
+ _ = x[UpdateLabel-6]
}
-const _Action_name = "NoActionStageUSBInstallTestImageInstallFirmwareVerifyRecoveryModeUpdateLabel"
+const _Action_name = "NoActionStageUSBInstallTestImageInstallFirmwareVerifyRecoveryModeSetupLabstationUpdateLabel"
-var _Action_index = [...]uint8{0, 8, 16, 32, 47, 65, 76}
+var _Action_index = [...]uint8{0, 8, 16, 32, 47, 65, 80, 91}
func (i Action) String() string {
if i < 0 || i >= Action(len(_Action_index)-1) {
diff --git a/src/lucifer/autotest/dutprep/action_test.go b/src/lucifer/autotest/dutprep/action_test.go
index 1391e68..2516899 100644
--- a/src/lucifer/autotest/dutprep/action_test.go
+++ b/src/lucifer/autotest/dutprep/action_test.go
@@ -15,12 +15,12 @@
want []Action
}{
{
- in: []Action{StageUSB, InstallTestImage, InstallFirmware, VerifyRecoveryMode, UpdateLabel},
- want: []Action{StageUSB, InstallTestImage, InstallFirmware, VerifyRecoveryMode, UpdateLabel},
+ in: []Action{StageUSB, InstallTestImage, InstallFirmware, VerifyRecoveryMode, SetupLabstation, UpdateLabel},
+ want: []Action{StageUSB, InstallTestImage, InstallFirmware, VerifyRecoveryMode, SetupLabstation, UpdateLabel},
},
{
- in: []Action{InstallTestImage, InstallFirmware, UpdateLabel, VerifyRecoveryMode, StageUSB},
- want: []Action{StageUSB, InstallTestImage, InstallFirmware, VerifyRecoveryMode, UpdateLabel},
+ in: []Action{InstallTestImage, SetupLabstation, InstallFirmware, UpdateLabel, VerifyRecoveryMode, StageUSB},
+ want: []Action{StageUSB, InstallTestImage, InstallFirmware, VerifyRecoveryMode, SetupLabstation, UpdateLabel},
},
{
in: []Action{InstallTestImage, StageUSB},