From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:54358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsqYz-0003S1-AZ for qemu-devel@nongnu.org; Sun, 10 Feb 2019 09:58:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsqYr-0006BF-0x for qemu-devel@nongnu.org; Sun, 10 Feb 2019 09:58:29 -0500 From: Max Reitz Date: Sun, 10 Feb 2019 15:57:33 +0100 Message-Id: <20190210145736.1486-8-mreitz@redhat.com> In-Reply-To: <20190210145736.1486-1-mreitz@redhat.com> References: <20190210145736.1486-1-mreitz@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v3 07/10] iotests.py: Filter filename in any string value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, Max Reitz , John Snow , Kevin Wolf filter_qmp_testfiles() currently filters the filename only for specific keys. However, there are more keys that take filenames (such as block-commit's @top and @base, or ssh's @path), and it does not make sense to list them all here. "$TEST_DIR/$PID-" should have enough entropy not to appear anywhere randomly. Signed-off-by: Max Reitz Reviewed-by: John Snow --- tests/qemu-iotests/iotests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.p= y index 52fc77563c..cba91a9927 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -289,7 +289,7 @@ def filter_testfiles(msg): =20 def filter_qmp_testfiles(qmsg): def _filter(key, value): - if key =3D=3D 'filename' or key =3D=3D 'backing-file': + if is_str(value): return filter_testfiles(value) return value return filter_qmp(qmsg, _filter) --=20 2.20.1