From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbrJV-0000lZ-Mc for qemu-devel@nongnu.org; Tue, 15 Sep 2015 10:34:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbrJS-00016i-Sw for qemu-devel@nongnu.org; Tue, 15 Sep 2015 10:34:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbrJS-00016e-Nu for qemu-devel@nongnu.org; Tue, 15 Sep 2015 10:34:26 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 521138EA29 for ; Tue, 15 Sep 2015 14:34:26 +0000 (UTC) References: <20150915060349.GK14016@ad.nay.redhat.com> From: Eric Blake Message-ID: <55F82C6C.3080508@redhat.com> Date: Tue, 15 Sep 2015 08:34:20 -0600 MIME-Version: 1.0 In-Reply-To: <20150915060349.GK14016@ad.nay.redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rnmkDVixnirUlVSASGCvJHSKA9D8Vje5B" Subject: Re: [Qemu-devel] iotests failure of 128 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com, mreitz@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rnmkDVixnirUlVSASGCvJHSKA9D8Vje5B Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/15/2015 12:03 AM, Fam Zheng wrote: > Since commit 934659c460d46c948cf348822fda1d38556ed9a4 (iotests: Do not = suppress > segfaults in bash tests), sudo in 128 complains about unknown command > "_qemu_io_wrapper", but I don't know how to fix that. Any idea? Ugg. That's because _qemu_io_wrapper is a shell function, but sudo can't directly invoke shell functions. It passes on systems where $sudo expands to '' because the test is being run as root. I think that test will have to be rewritten to use raw invocation (untested): $sudo "$QEMU_IO_PROG" $QEMU_IO_OPTIONS --format "$IMGFMT" --nocache -c "read 0 65536" "$TEST_IMG" > out 2> err and then manually feed "out" through _filter_qemu_io and replay "err" (since you can no longer take advantage of the '(subshell)|pipeline' trick added by 934659c to force bash to display core dumps). --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --rnmkDVixnirUlVSASGCvJHSKA9D8Vje5B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJV+CxtAAoJEKeha0olJ0NqtZoH/jz5uv8AAHyKURHS8/cN3D0q 7032G5znc8vaLXaF6FmdwXlxQUeyxbY4k96tW9xM6PJ4kL3iv4H+B+zuaYVVeH8f WVysjHfvbUzv74ni0aQ5ztkU8BCyQwipwDcuE2P6IgxnfW9fzwhytH1vqo45S5+I EuIBJGLge/YK/hBo10Gi5fCnA+l99ZeyBWA9BM0Ndli4cUTmOZS8qWzlzgzbCSUN 4whI2vnApfJtPT8pl4713HepoztNutWwLvWStgu3+uXVA2t6D2tztkbJuYmgPULw gf1QHn4bRwEZTnQh9Xmkmf60RHNwlAx00k0he1ZZOX0u4Sob5J5FK/Eceaf4m04= =EJEl -----END PGP SIGNATURE----- --rnmkDVixnirUlVSASGCvJHSKA9D8Vje5B--