iotests: Fix test 128 for password-less sudo
commitbb3c801df7ed454b663312326bc29c8b9c2e4de6
authorMax Reitz <mreitz@redhat.com>
Fri, 25 Sep 2015 17:19:24 +0000 (25 19:19 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Oct 2015 11:48:29 +0000 (2 13:48 +0200)
treef1b2f1c5bcd54e3acc4e247b553c6a2850c0def9
parent552bb52c4bf199ae9c038570187749b93c91310a
iotests: Fix test 128 for password-less sudo

As of 934659c460d46c948cf348822fda1d38556ed9a4, $QEMU_IO is generally no
longer a program name, and therefore "sudo -n $QEMU_IO" will no longer
work.

Fix this by copying the qemu-io invocation function from common.config,
making it use $sudo for invoking $QEMU_IO_PROG, and then use that
function instead of $QEMU_IO.

Reported-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/128