Lines Matching refs:f
196 remote_cmd = f"/usr/bin/install_zip.sh {remote_image_dir} < {image_zip}"
225 cmd = (f"tar -cf - --lzop -S -C {image_dir} {' '.join(artifact_files)} | "
226 f"{ssh_obj.GetBaseCmd(constants.SSH_BIN)} -- "
227 f"tar -xf - --lzop -S -C {remote_image_dir}")
241 cmd = (f"tar -cf - --lzop -S -C {cvd_host_package} . | "
242 f"{ssh_obj.GetBaseCmd(constants.SSH_BIN)} -- "
243 f"tar -xf - --lzop -S -C {remote_image_dir}")
247 remote_cmd = f"tar -xzf - -C {remote_image_dir} < {cvd_host_package}"
386 f"{kernel_search_path}, {vendor_boot_search_path} is not a boot "
414 f"{search_path} is not a system_dlkm image or a directory containing "
565 cmd = (f"tar -cf - --lzop -S -C {super_image_dir} {_SUPER_IMAGE_NAME} | "
566 f"{ssh_obj.GetBaseCmd(constants.SSH_BIN)} -- "
567 f"tar -xf - --lzop -S -C {remote_super_image_dir}")
589 stop_cvd_cmd = f"'HOME={home} {stop_cvd_path}'"
601 ssh_obj.Run(f"'rm -rf {remote_path.join(remote_dir, '*')}'")
667 f"{remote_image_dir} {remote_link}")
670 ref_cnt_cmd = (f"expr $(test -s {remote_ref_cnt} && "
671 f"cat {remote_ref_cnt} || echo 0) + 1 > {remote_ref_cnt}")
676 f"mkdir -p {remote_image_dir} && flock {remote_ref_cnt} -c " +
678 f"mkdir -p {remote_dir} {remote_image_dir} && "
679 f"{ln_cmd} && {ref_cnt_cmd}")))
693 shlex.quote(f"readlink -n -e {remote_link} || true"))
700 ref_cnt_cmd = (f"expr $(test -s {remote_ref_cnt} && "
701 f"cat {remote_ref_cnt} || echo 1) - 1 > "
702 f"{remote_ref_cnt}")
707 f"mkdir -p {remote_image_dir} && flock {remote_ref_cnt} -c " +
709 f"rm -f {remote_link} && "
710 f"{ref_cnt_cmd} || "
711 f"rm -rf {remote_image_dir} {remote_ref_cnt}")))
757 timestamp_cmd = (f"test -s {remote_timestamp_path} && "
758 f"cat {remote_timestamp_path} || "
759 f"expr $(date +%s) + {timeout} > {remote_timestamp_path}")
761 f"flock {remote_timestamp_path} -c " +
767 wait_cmd = (f"test -s {remote_args_path} -o "
768 f"{upload_deadline} -le $(date +%s) || echo wait...")
772 f"flock {remote_args_path} -c " + shlex.quote(wait_cmd))),
775 f"{remote_args_path} is not ready within {timeout} secs"),
780 f"flock {remote_args_path} -c " +
781 shlex.quote(f"cat {remote_args_path}")))
784 f"The uploader did not meet the deadline {upload_deadline}. "
785 f"{remote_args_path} is unusable.")
789 raise errors.CreateError(f"Cannot load {remote_args_path}: {e}")
804 f"flock {remote_args_path} -c " +
805 shlex.quote(f"echo {args_str} > {remote_args_path}")))
932 ssh_obj.Run(f"-t '{cmd}'", boot_timeout_secs, retry=0)
936 f"{boot_timeout_secs} secs)")
966 ssh_obj.Run(f"test -d {runtime_dir}", retry=0)
1187 f"Cannot find {_MISC_INFO_FILE_NAME} in {image_dir}. The "
1188 f"directory is expected to be an extracted target files zip or "
1189 f"{constants.ENV_ANDROID_PRODUCT_OUT}.")
1248 f"Cannot find {image_path} in {image_dir}.")