Lines Matching refs:moblab
96 def stage_remote_payload(moblab, devserver_port, tmp_stage_file): argument
111 moblab.run('rm -f %s && chown moblab:moblab %s' %
114 devserver_host = moblab.web_address.split(':')[0]
135 def stage_local_payload(moblab, devserver_port, tmp_stage_dir, payload): argument
153 moblab.send_file(payload, tmp_stage_file)
157 payload_type = moblab.run('python', stdin=get_payload_type).stdout.strip()
160 payload_uri = stage_remote_payload(moblab, devserver_port, tmp_stage_file)
165 def generate_payload(moblab, devserver_port, tmp_stage_dir, payload_spec): argument
192 tmp_images_dir = moblab.make_tmp_dir()
197 moblab.send_file(dst_image, remote_dst_image)
202 moblab.send_file(src_image, remote_src_image)
215 moblab.run(' '.join(gen_cmd), stdout_tee=None, stderr_tee=None)
217 moblab.run('rm -rf %s' % tmp_images_dir)
220 payload_uri = stage_remote_payload(moblab, devserver_port, tmp_stage_file)
225 def stage_payload(moblab, devserver_port, tmp_dir, use, payload_spec): argument
246 moblab.run('mkdir -p %s && chown -R moblab:moblab %s' %
251 return generate_payload(moblab, devserver_port, tmp_stage_dir,
254 return stage_local_payload(moblab, devserver_port, tmp_stage_dir,
265 moblab, devserver_port = brillo_common.get_moblab_and_devserver_port(
267 tmp_dir = moblab.make_tmp_dir(base=moblab_host.MOBLAB_IMAGE_STORAGE)
268 moblab.run('chown -R moblab:moblab %s' % tmp_dir)
272 payload_uri, _ = stage_payload(moblab, devserver_port, tmp_dir,
278 moblab, devserver_port, tmp_dir, 'target', args.target_payload)
283 moblab.run('rm -rf %s' % tmp_dir)
285 brillo_common.do_test_action(args, moblab, _TEST_NAME, test_args)