Lines Matching +full:before +full:- +full:script
4 set -e
10 mount -t proc none /proc
11 mount -t sysfs none /sys
12 mkdir -p /dev/pts
13 mount -t devpts devpts /dev/pts
15 mount -t tmpfs -o noexec,nodev,nosuid tmpfs /dev/shm
16 mount -t tmpfs tmpfs /tmp
18 . ${VM_TEMP_DIR}/crosvm-env.sh
19 . ${VM_TEMP_DIR}/setup-test-env.sh
21 # .gitlab-ci.yml script variable is using relative paths to install directory,
22 # so change to that dir before running `crosvm-script`
26 [ -z "${DEQP_BIN_DIR}" ] || cd "${DEQP_BIN_DIR}"
29 STDERR_FIFO=/tmp/crosvm-stderr.fifo
30 mkfifo -m 600 ${STDERR_FIFO}
32 dmesg --level crit,err,warn -w > ${STDERR_FIFO} &
35 # Transfer the errors and crosvm-script output via a pair of virtio-vsocks
36 socat -d -u pipe:${STDERR_FIFO} vsock-listen:${VSOCK_STDERR} &
37 socat -d -U vsock-listen:${VSOCK_STDOUT} \
38 …system:"stdbuf -eL bash ${VM_TEMP_DIR}/crosvm-script.sh 2> ${STDERR_FIFO}; echo \$? > ${VM_TEMP_DI…
44 poweroff -d -n -f || true
46 sleep 1 # Just in case init would exit before the kernel shuts down the VM