]> git.wh0rd.org - home.git/commitdiff
cros-board: use test image for VMs
authorMike Frysinger <vapier@gentoo.org>
Tue, 10 Nov 2020 09:13:41 +0000 (04:13 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 10 Nov 2020 09:17:00 +0000 (04:17 -0500)
.bin/cros-board

index e4a793bf6cfa5e0531015f54f50610f2a77c1f60..066804f2ee1f634d1664b88f17ae48fff92deb13 100755 (executable)
@@ -27,7 +27,6 @@ Options:
   --autotest  Build & install autotest packages.
   --factory   Build factory packages & image.
   --nousepkg  Force build from source.
-  --vm        Create VM image.
 
   --clean     ?
 
@@ -60,7 +59,6 @@ ARG_AUTOTEST=false
 ARG_FACTORY=false
 ARG_VERBOSE=false
 ARG_TEST=false
-ARG_VM=false
 while [[ $# -ne 0 ]] ; do
        case $1 in
        --clean) ARG_CLEAN=true;;
@@ -72,7 +70,6 @@ while [[ $# -ne 0 ]] ; do
        --nousepkg) ARG_NOPKG=true;;
        --autotest) ARG_AUTOTEST=true;;
        --factory) ARG_FACTORY=true;;
-       --vm) ARG_VM=true;;
        -h) usage;;
        *) echo "unknown opt: $*"; exit 1;;
        esac
@@ -135,11 +132,6 @@ if ${ARG_DEV_USER} ; then
        sync &
 fi
 
-IMG_TO_VM=( ${d}/image_to_vm.sh --board=${BOARD} --from=${BUILD_DIR}/images/${BOARD}/latest --test_image )
-if ${ARG_VM} ; then
-       run "${IMG_TO_VM[@]}"
-fi
-
 cd "${IMAGES}"
 rm -rf $(ls -td1R `find -mindepth 1 -maxdepth 1 -type d` | sed -e 1d -e 2d)
 
@@ -150,8 +142,7 @@ cat <<EOF
 ${IMG_TO_USB}
 
 ### KVM
-${IMG_TO_VM[*]}
-~/chromiumos/chromite/bin/cros_vm --start --no-display --image-path=\${HOME}/chromiumos/src/build/images/${BOARD}/latest/chromiumos_qemu_image.bin
+~/chromiumos/chromite/bin/cros_vm --board=${BOARD} --start --no-display --image-path=\${HOME}/chromiumos/src/build/images/${BOARD}/latest/chromiumos_test_image.bin
 #--kvm_cpu "max,vmx=on"
 
 https://dev.chromium.org/chromium-os/testing/running-smoke-suite-on-a-vm-image