diff --git a/src/tests/kvm/virtme-run.sh b/src/tests/kvm/virtme-run.sh index ec05f913c..3b9fda63f 100755 --- a/src/tests/kvm/virtme-run.sh +++ b/src/tests/kvm/virtme-run.sh @@ -20,6 +20,12 @@ XDG_DATA_DIRS=$XDG_DATA_DIRS \ $VM_ENV \ " +if [[ "$(stat -c '%t:%T' -L /proc/$$/fd/0)" == "0:0" ]]; then + mkfifo $XDG_RUNTIME_DIR/fake-stdin.$$ + exec 0<> $XDG_RUNTIME_DIR/fake-stdin.$$ + rm -f $XDG_RUNTIME_DIR/fake-stdin.$$ +fi + virtme-run \ --memory=256M \ --rw \