def populate(self, parameters): self.internal_pipeline = Pipeline(parent=self, job=self.job, parameters=parameters) flash_cmds_order = self.job.device['flash_cmds_order'] userlist = list(parameters['images'].keys()) userlist.remove('yaml_line') flash_cmds = set(userlist).difference(set(flash_cmds_order)) flash_cmds = flash_cmds_order + list(flash_cmds) self.internal_pipeline.add_action(ReadFeedback(repeat=True)) for flash_cmd in flash_cmds: if flash_cmd not in parameters['images']: continue self.internal_pipeline.add_action( FastbootFlashAction(cmd=flash_cmd)) self.reboot = parameters['images'][flash_cmd].get('reboot', None) if self.reboot == 'fastboot-reboot': self.internal_pipeline.add_action(FastbootReboot()) self.internal_pipeline.add_action(ReadFeedback(repeat=True)) elif self.reboot == 'fastboot-reboot-bootloader': self.internal_pipeline.add_action(FastbootRebootBootloader()) self.internal_pipeline.add_action(ReadFeedback(repeat=True)) elif self.reboot == 'hard-reset': self.internal_pipeline.add_action(PDUReboot()) self.internal_pipeline.add_action(ReadFeedback(repeat=True))
def populate(self, parameters): self.pipeline = Pipeline(parent=self, job=self.job, parameters=parameters) flash_cmds_order = self.job.device["flash_cmds_order"] userlist = list(parameters["images"].keys()) flash_cmds = set(userlist).difference(set(flash_cmds_order)) flash_cmds = flash_cmds_order + list(flash_cmds) board_id = self.job.device["fastboot_serial_number"] self.pipeline.add_action(ReadFeedback(repeat=True)) for flash_cmd in flash_cmds: if flash_cmd not in parameters["images"]: continue self.pipeline.add_action(WaitDeviceBoardID(board_id)) self.pipeline.add_action(FastbootFlashAction(cmd=flash_cmd)) self.reboot = parameters["images"][flash_cmd].get("reboot") if self.reboot == "fastboot-reboot": self.pipeline.add_action(FastbootReboot()) self.pipeline.add_action(ReadFeedback(repeat=True)) elif self.reboot == "fastboot-reboot-bootloader": self.pipeline.add_action(FastbootRebootBootloader()) self.pipeline.add_action(ReadFeedback(repeat=True)) elif self.reboot == "fastboot-reboot-fastboot": self.pipeline.add_action(FastbootRebootFastboot()) self.pipeline.add_action(ReadFeedback(repeat=True)) elif self.reboot == "hard-reset": self.pipeline.add_action(PDUReboot()) self.pipeline.add_action(ReadFeedback(repeat=True))
def populate(self, parameters): self.pipeline = Pipeline(parent=self, job=self.job, parameters=parameters) self.pipeline.add_action(DockerTestSetEnvironment()) self.pipeline.add_action(CreateOverlay()) self.pipeline.add_action(DockerTestShell()) self.pipeline.add_action(ReadFeedback())
def populate(self, parameters): self.pipeline = Pipeline(parent=self, job=self.job, parameters=parameters) self.pipeline.add_action(CheckFVPVersionAction()) self.pipeline.add_action(StartFVPAction()) if parameters.get("use_telnet", True): self.pipeline.add_action(GetFVPSerialAction()) self.pipeline.add_action(ReadFeedback())
def populate(self, parameters): self.pipeline = Pipeline(parent=self, job=self.job, parameters=parameters) self.pipeline.add_action(BootFVPMain()) if self.has_prompts(parameters): self.pipeline.add_action(ReadFeedback()) self.pipeline.add_action(AutoLoginAction()) if self.test_has_shell(parameters): self.pipeline.add_action(ExpectShellSession()) if "transfer_overlay" in parameters: self.pipeline.add_action(OverlayUnpack())
def populate(self, parameters): self.pipeline = Pipeline(parent=self, job=self.job, parameters=parameters) self.pipeline.add_action(DockerTestSetEnvironment()) self.pipeline.add_action(CreateOverlay()) wait_for_device = (parameters.get("docker", {}).get("wait", {}).get("device", True)) if wait_for_device: self.pipeline.add_action(WaitDeviceBoardID(self.get_board_id())) self.pipeline.add_action(DockerTestShell(wait_for_device)) self.pipeline.add_action(ReadFeedback())