17ec681f3Smrg#!/bin/sh 27ec681f3Smrg 37ec681f3Smrgset -ex 47ec681f3Smrg 57ec681f3Smrgmount -t proc none /proc 67ec681f3Smrgmount -t sysfs none /sys 77ec681f3Smrgmount -t devtmpfs none /dev || echo possibly already mounted 87ec681f3Smrgmkdir -p /dev/pts 97ec681f3Smrgmount -t devpts devpts /dev/pts 107ec681f3Smrgmount -t tmpfs tmpfs /tmp 117ec681f3Smrg 127ec681f3Smrg. /crosvm-env.sh 137ec681f3Smrg 147ec681f3Smrg# / is ro 157ec681f3Smrgexport PIGLIT_REPLAY_EXTRA_ARGS="$PIGLIT_REPLAY_EXTRA_ARGS --db-path /tmp/replayer-db" 167ec681f3Smrg 177ec681f3Smrgif sh $CROSVM_TEST_SCRIPT; then 187ec681f3Smrg touch /results/success 197ec681f3Smrgfi 207ec681f3Smrg 217ec681f3Smrgsleep 5 # Leave some time to get the last output flushed out 227ec681f3Smrg 237ec681f3Smrgpoweroff -d -n -f || true 247ec681f3Smrg 257ec681f3Smrgsleep 10 # Just in case init would exit before the kernel shuts down the VM 267ec681f3Smrg 277ec681f3Smrgexit 1 28