From nobody Thu May 2 15:02:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1610805031; cv=pass; d=zohomail.com; s=zohoarc; b=fXRkcRs/5MYxwbbgjJCZ48PVzCM8VzeNLrhnLiMxKqniFzQNe9LklBpm+lqijUr4hSmmnfXRjE7APViBDSS8uB4Fh/V4B6eqv0RDkxbR+23zdWMUudQEPuAASoFnK79BILwu0baBUfCHno9RuZZ7lu7uhjwI4b8RtfbxMdo9o2s= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610805031; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=rEdcMc3a0pe1LYf7g6BdVH+m8T8UKHhq3GHA3zYxdEU=; b=nXS4vNYmkcUBi/+SXnFCfpfeRPs/yrVJ6rVYv73p4w01Vyxg3JdejMxfxZNAtDLekvmAvN/amJghxMEoEjBjmvh1sBuFnohBgDkXsMHSy8DCqlUgeRgqi/+g9cR+ByUMl2sUeBDcE5Er/HfEWrPfgz+iz9JhxM0XKHQppyd205o= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16108050312971011.5741841326942; Sat, 16 Jan 2021 05:50:31 -0800 (PST) Received: from localhost ([::1]:44308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0lyH-00006d-PD for importer@patchew.org; Sat, 16 Jan 2021 08:50:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0lt8-000378-BN; Sat, 16 Jan 2021 08:45:10 -0500 Received: from mail-db8eur05on2123.outbound.protection.outlook.com ([40.107.20.123]:62560 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0lt6-0007XP-JU; Sat, 16 Jan 2021 08:45:10 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM5PR0801MB2098.eurprd08.prod.outlook.com (2603:10a6:203:4a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Sat, 16 Jan 2021 13:45:00 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8%9]) with mapi id 15.20.3763.013; Sat, 16 Jan 2021 13:45:00 +0000 Received: from kvm.sw.ru (185.215.60.72) by AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.4 via Frontend Transport; Sat, 16 Jan 2021 13:44:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M13HiaWPI8w2kaUwvlPN+YJPHvR3Lu77mfb5EH02I9TGdNGxKtK633+fOhLMdRVnD9PURYy3uoCv7u3UDC6jDSGWP1v4djFDwJHj43JskatArgq/dL/tV4K7br5w8XFHOMPgxZlL89oaj5fJWHaS+Dphv4YuGAd//cMl71gRbZIbGCAaK7HaoT+D3iRwh5vC3HdPdvhF+GKO4C0fPTKPgOEX6PcSRvS4zRKZLOgs0H/7WPzfgO7t0oFpJ6I5HHFgd0xooV/IMxA8nmzFPc8luC3ZOsriBd25M8lhSmaI0q7+Bf6om7B+ByM9v48UmCKyoXRIrXk0iB+022yl+IUx8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rEdcMc3a0pe1LYf7g6BdVH+m8T8UKHhq3GHA3zYxdEU=; b=fPmjov3CjqhMj3cfvqvZljGC689pEWO090p85gH6QMy7kyKGoElZ8tm1XLLjQh9CweYZDXmjNcRhNlw7rQVhkSvWA68PXlfTET0fVaqvcNy3n89aCCAy3zfcrEdHZmP4t62/ZzbOa0JVUzmjGAA0I4/lHm8jkGM3qsIWqCgTt9bKB+agNgTaOJOsRBlPT5c99SndX/1dPkqPT81iPxixxeXQhnNX8jMFQya5Yq4e/0mNzF+GlY7gsBRRH63Y1Gq3xtEVMlY8vJwr+VYUCqhKSWBwoZjTioOBHoQGuLhIPBbITLZvRxICNmJ9vEQ2VRwt8Tm+DTC/dN90k5SJNcRVaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rEdcMc3a0pe1LYf7g6BdVH+m8T8UKHhq3GHA3zYxdEU=; b=iWFwb7kBSUpfUotu3Og2abfX9uL00Ynx6Lzkf5YTYDFLAj95WAsEyDjKgWCX85RQt2HcYbAcuVDzbvhtISbmv0hxVL8VjYhc4GJqsnz9fQeMlt9X+DufGjv3nKgeizYT/whwhlUHoNcFEeezY+63XNTN4POJvKiK5jIrfyl7K90= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Subject: [PATCH v7 01/11] iotests/277: use dot slash for nbd-fault-injector.py running Date: Sat, 16 Jan 2021 16:44:14 +0300 Message-Id: <20210116134424.82867-2-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210116134424.82867-1-vsementsov@virtuozzo.com> References: <20210116134424.82867-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.72] X-ClientProxiedBy: AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8e3b1e35-c21b-4da7-507b-08d8ba24eb3d X-MS-TrafficTypeDiagnostic: AM5PR0801MB2098: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GZb9kqPkKsPHLeoEgFJjM++wJ+PF2uf4Ubl/mavGIE5vcUEu46zXmiqQh+RIFd6C5Z1EY5n5ZG8/CWZafKWjfgF1ZWXb09kOPCTEka0hA3UqrWcBqfMiv6XuIjC5q80nhYFSebMYOqMHlVEKTpmUU1JlK9Yzwzy39i4DdWjuqyBjmstO9kQdBF5tcHSHtxO8aaneEhNQ2vt6gJl5lbbMREoDJV4UB4dAbFvW3yoLnBhefDUf8mdRwFiY3KkuF+tj8xNhpLV1QIWC6mkzqCE2KX5wT4JST1EBAzFqlV5aBw+nU80592BymGabSGzeNIsV4MyBRriLhDVQHrdgcj2hMvOnc650Pe8nmjav6pgpi8oWFxxDd6AJ6BsalY+LOuynaOzdqF0qIL11ToUZum6Se3aO2c/8hCoed40tMs9+yGnTjfG0JivU+hSycjDtyfcoEAIizXvzSsUSTPM2N4aLIaNLKT+RcqAd8plLcuE/DzOa/W9CteSG833XyEnr5N1bc2nZZaWY8ZIcMf2kCBVnag== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(366004)(376002)(346002)(39830400003)(6916009)(36756003)(83380400001)(66946007)(6666004)(6512007)(86362001)(1076003)(66556008)(5660300002)(6486002)(66476007)(6506007)(478600001)(4326008)(8676002)(8936002)(956004)(2906002)(52116002)(186003)(16526019)(316002)(26005)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?VBfudmuT9gaIa5UP2MaXVTAQTlEMkCmSCkPXLKWaa85R4HNiP2Rl74RyfBcH?= =?us-ascii?Q?5qiEHJSmoYmgYvWyTfH7z0SfGb7+TPSkYLh0BG8fsbUVq6Pd8N9O7lDgHZfl?= =?us-ascii?Q?RHAcUlqQbkHwNBO+Xx2lBEL3gIMN+bwOlui4w+SQHlTJ03m1+w0xdRpH6/jF?= =?us-ascii?Q?2Tr1NUmhI8TP/6POHlldMjMRd+zBfZNnB5bFNWl/xFSsQbrEPKahMqpwChVh?= =?us-ascii?Q?gjrgBrNqzH/bHbFFjCrzWcVm2Ch8CDwb8L0KGWG9UZ5Sj1isCAXTffra2NPh?= =?us-ascii?Q?QA2vXrV5XM9973CMUmGwzkZy+zLiZSTzAFe0t4KNPRaBpIfxbTT4hkhdM2Ag?= =?us-ascii?Q?6G68ejTAuSiAmHXNk1hbnwNNo6zZkjmOE4QNswxGOwPg/CklakAkHBSs0EQ7?= =?us-ascii?Q?oG8dDz2YrECDG7p8VDkYcd7OTv97kYP+vJBmPBrLVCzYqIYbX1q5JospY4/5?= =?us-ascii?Q?sZJ/hCSt1exQ/MLGQn1W3el6mS6U+C4j1155Fw18jSgXbkXjU2/mMHL8IbqS?= =?us-ascii?Q?07ov13ghmFJHEQeze/d6JeoqTdjx1JAHe73cJN6OD88ZG0+xj49vX/LODk+w?= =?us-ascii?Q?sL1E9lEOGTOmhR8Yr8sSP+SeCUJJBAdPSZrsGVxNNBTn4Tkmt3nYztS0j+gI?= =?us-ascii?Q?pbwXdMvFQ+VWW7tA1NNbKcB1dTu/l/ZGsku/Qcz429t5EG2WguZ1Jz0MiKSh?= =?us-ascii?Q?XQfYen8PmhFP09hgbgfbzu7d+mJMo1i9JwMfOpkcFTk+WSrcMbzi6/mdoyUO?= =?us-ascii?Q?A689/B9MwPjtIBYK/ZThdfyx9IC5g9SRKIx2XdGFYv+sy6S/pYQxxpouejAC?= =?us-ascii?Q?zekfaK1Fe36jXtO9R0HHNSUCVlfh225csjyzI5uzSK7zd0YU9sT9C+/I/6Lj?= =?us-ascii?Q?hWhsGDZcy2wEb6tRtZoH2/oam6TEQ07Mh+if+rlsKhzbu7tExRE2cjuoQZZI?= =?us-ascii?Q?UiyHWYy1Hhd0Iv4eQEviHk1ukekPjpZwXN7wwZS4G+bnIPjKzpVsdvw0CAYs?= =?us-ascii?Q?xLWS?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e3b1e35-c21b-4da7-507b-08d8ba24eb3d X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2021 13:45:00.4901 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UTQr6GbXsUc1dAIiKkOCRwk4O8yjIUnMuVQrQVqiS8cS1nK/d2y2dafuqL5ggLmB5nV/QLLHmpIIPuwc2wjL0bZUJBoTM844ZxFAgFpbyYU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2098 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.20.123; envelope-from=vsementsov@virtuozzo.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" If you run './check 277', check includes common.config which adjusts $PATH to include '.' first, and therefore finds nbd-fault-injector.py on PATH. But if you run './277' directly, there is nothing to adjust PATH, and if '.' is not already on your PATH by other means, the test fails because the executable is not found. Adjust how we invoke the helper executable to avoid needing a PATH search in the first place. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake --- tests/qemu-iotests/277 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/277 b/tests/qemu-iotests/277 index d34f87021f..a39ce2d873 100755 --- a/tests/qemu-iotests/277 +++ b/tests/qemu-iotests/277 @@ -42,7 +42,7 @@ def make_conf_file(event): def start_server_NBD(event): make_conf_file(event) =20 - srv =3D subprocess.Popen(['nbd-fault-injector.py', '--classic-negotiat= ion', + srv =3D subprocess.Popen(['./nbd-fault-injector.py', '--classic-negoti= ation', nbd_sock, conf_file], stdout=3Dsubprocess.PIPE, stderr=3Dsubprocess.STDOUT, universal_newlines= =3DTrue) line =3D srv.stdout.readline() --=20 2.29.2 From nobody Thu May 2 15:02:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1610805190; cv=pass; d=zohomail.com; s=zohoarc; b=OjfM13tzFc7W8THG0GBnpzGj1kWGLCkVcah1YV/yhElj5w3QAW0E5XpfoTb5K9M/dakOYDD26oVDQjiQpOByQ4S8U43dLlNqLZbWPtlFj4QOhiYgFDCGcJzNlRpQhQ3hCd5+Vn2jjzF7hAomQgvatHpLDAolCz3wCVjmIXZl2fI= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610805190; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Qcxe31h/IQSJ1MqInU5mp3Ssd4l3FJDdAote1BN+jQI=; b=dy5uYfSL8rp1Y/DKUhLDRQetRtkHHEZHR6GFdBaNQrzFOg2MkpHKgHDlDn59O8y9T+vAR9RpIOTzTs5EjN958bkXcCYArVEyp1M3kHfmHHxYagw2v26qvPdvvXxwYlFZ+eM/XgyOZunvNyCcucMh7ibG4Meo4Ijftv3ZgfgHkd0= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610805190071989.3457566700681; Sat, 16 Jan 2021 05:53:10 -0800 (PST) Received: from localhost ([::1]:51882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0m0q-0003Np-MO for importer@patchew.org; Sat, 16 Jan 2021 08:53:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0lt9-00037J-1U; Sat, 16 Jan 2021 08:45:11 -0500 Received: from mail-eopbgr60109.outbound.protection.outlook.com ([40.107.6.109]:49662 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0lt7-0007U8-Cg; Sat, 16 Jan 2021 08:45:10 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM5PR0801MB2098.eurprd08.prod.outlook.com (2603:10a6:203:4a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Sat, 16 Jan 2021 13:45:01 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8%9]) with mapi id 15.20.3763.013; Sat, 16 Jan 2021 13:45:01 +0000 Received: from kvm.sw.ru (185.215.60.72) by AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.4 via Frontend Transport; Sat, 16 Jan 2021 13:45:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QDeAUTvQBlB8IDDwibc4sdURY4HnA62Iie3AzpnJioWv0SxG7jHih4NNajAJtePfgvcL98a12dtiYnY0IIA8tEuqXqH4k1oB4+t+7aoo0KTvx0FmgsKwG5lIHHa1E3iVaYcxoNirzGqIfe2QCnREuqXQYvqGmWnhx6vds6PAvJ2mNE0hb4RYtUFwV7wY4Lk01jo+ItA2cdGnoOTUzaRapM9TwjZStDeQ6nJaJsLq8hlscv+LYY7g0m8hx/Vmb9h2hiNrUay6/S9oJXhU4pJhcZOJBtg6atuh5R95jeOWbkc/9K2lseUnRAtGojv/N3BFOFlFi9DUXat+taDbaEp6dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qcxe31h/IQSJ1MqInU5mp3Ssd4l3FJDdAote1BN+jQI=; b=QFKblVjwZoH1qlhc0/UzOu3+9ddOsVzf+X/3PFOzg9k7aDcJ0aq2QJYwpF+QFNLJqzo9faIuLJUHFE2xVUQoUSLLp01sFibwXfRX6ALTqtQMIhXtUZU9V3vF6okQxQzmKJfPPl34jTBg/w0Y5HpRhDp7qQxsB8NCkRAjJjFKI4zZ6EXl4Yd3Z7QEIh+1y5DkpioaBt3/rB2X+ceshPzSEJlssuPMbuvcRXWOl6gwJfX2Felc7VOWjjQwfWpHzjFTzOMd01wA/PdOw1cw4lKTgpmipBcPH1yttufeOk8YDr5dmmjqPJwdh2fp8S31h2deZkxncqAC/UZLAgQfh7x7eQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qcxe31h/IQSJ1MqInU5mp3Ssd4l3FJDdAote1BN+jQI=; b=Aq0xukE00c/LNpMgTuGCLdMiv56nOnZmLHLTbQP9aVb3N3MRFbtn+0/w2DYmdHPvWksdnq/4qsF5VVjIzzfAo0eQPbnpB7mRwt29Z8PJxdxPjQ3GHctJ1Q2387H1ShuQxOQpxKAaVXY63Mpy0IKojeqeHRV/aBspkU6/dJktZ1g= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Subject: [PATCH v7 02/11] iotests/303: use dot slash for qcow2.py running Date: Sat, 16 Jan 2021 16:44:15 +0300 Message-Id: <20210116134424.82867-3-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210116134424.82867-1-vsementsov@virtuozzo.com> References: <20210116134424.82867-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.72] X-ClientProxiedBy: AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 877fc77e-9032-4046-ce71-08d8ba24ebde X-MS-TrafficTypeDiagnostic: AM5PR0801MB2098: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8x4T4MQYpDHg2o9pGmMx5SJXR3asEnEyOlk2WBG7J2Ldn8EpMQ7WNl+24GIcfaImFJ3xg6nxPdRIQeJSStIKv7xaKzbNrQ+HAy4LN02QRZTWOEYgfYDltFaKP7wnRbIIblr5rsk0ufjRXrDUSfO/AlFOdXHMvc0edN3MoDziGIZgFGiOEvcjBGqMUV0FDIDJG874EUOm/VB7LngsqnXq5myA/FiMfq7iLqB5t2XTMFj4+beBN8RndAx77g3l5f3VoEYrZZ5YOh5LVBQPynIHn3/tTiaHgZPuKg0H9bRYIQ8QpKOjK3BscWDKEr+8YQZlPh6J9IRNF2bx9CW74hwM3YwReYs4Bcgb6mVO+jOv7R8foLwUeqYl5Y0K+RxXjMoSuBvrvo35k6RGtYpERaDOM+xNas4xcHQcj5ituz4Cl06WWWvCjOJWRzHXJkgQBVt8/UtZOwok52NXOOcINoi3uVdWs4VyrZRi4P0Kk4vsZF0+5UcYEV97PClL3fiWErzWiB3RA3msJd2k/EkDx7zfSQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(366004)(376002)(346002)(39830400003)(6916009)(36756003)(83380400001)(66946007)(6666004)(6512007)(86362001)(1076003)(66556008)(5660300002)(6486002)(66476007)(6506007)(478600001)(4326008)(8676002)(8936002)(956004)(2906002)(52116002)(186003)(16526019)(316002)(26005)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?frcgx1EZvqvxILoSFGHCraSXYA8yyzrrix92J0fdTDOpt/LesSPH3glB5NkT?= =?us-ascii?Q?zZ/yqQUNfCNlw/ei8s8UsXr3zDuQus5+EJV4htXVw/reermoUDRNTONV9cJm?= =?us-ascii?Q?eFY12a4O+9sp2sez5jGEMdnPtO0vGAb64D04mP/GGdVI1eZwhRrm7qLHgfoi?= =?us-ascii?Q?Q15eKakIK5HMLmLDyiqPMkytazxWiU0VpmxWQ1LVb3WmFR8VufOo24vSPM3/?= =?us-ascii?Q?+uGwtCXMvBccOBYtPidneLhB5APB6U3gJP1qao1ZK6baOMNTe3RSCmk/afbl?= =?us-ascii?Q?trLTjM5xJd+NGb72oLwXwZJcmJpXAZzo3gpVgk/xMaYtAr2KuV5L1mWmw5Sp?= =?us-ascii?Q?G/zEH0VffAhDEbnIgVe9TW3pXPLYJ4pMLLERR0JON+0Me8g09uFBuxAN6ON/?= =?us-ascii?Q?o2/AuZS3G15v1DMSvmKSNpjTdXHSvfHaisRI14G0rw1PPgLwEK761D/CDeDD?= =?us-ascii?Q?qFXGMxKY4pFFJB50oEKuUym73txX5jFoJH1Ehk0Q7dxOx5s00U4ttTiVvetg?= =?us-ascii?Q?gaaj2joAtuds20qXC7+l4jwukZQ125mYOGPNJwaBoN77a/SydG0EvP5UsZuL?= =?us-ascii?Q?Ww701vmlfBdHxVk5BqttHu8nhex9fYTxYs94vC6/mP+KdQF8LLfRu8b8Tf1g?= =?us-ascii?Q?XL+SEREzvOI2unr6+ieWyEfJw3KKlUKe2o478h+ih03HPqiOADlBIYX+9t5G?= =?us-ascii?Q?XO7k3371ZG084jUEykAHpCq+EL/oBdteVM/+u8JCxgUXeqaYtLVp3pD2ps92?= =?us-ascii?Q?uas+OT42wRSyoPtaWgAweJwZ1d+wrkBkVoKtaISSlMi4fKp+VBrXpsCctjIl?= =?us-ascii?Q?0KghShdnrFMA1AQXIlUg3Yj4c7DOW3hMSnrc7Y+5g/6J5BEj7v5sMEp5yfb2?= =?us-ascii?Q?oJirUGJ2ou+q/Vu/ycfmgdME5EIBCYaZslJV62B9dJSrs5NfybScvUHAZOCW?= =?us-ascii?Q?PwFo2FtlxhrAx5Sb1U9ZSJ6sTxivAbgIJPzEonO6Soy4pA5yJdQO4bIImXz/?= =?us-ascii?Q?43yg?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 877fc77e-9032-4046-ce71-08d8ba24ebde X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2021 13:45:01.3623 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: n0/sQDAnPIx40nFaeQRYTWwf0197o0k3RL+FWWGLEvKZt/V1QTIzPq6Y/yc4/NmSXpiKW0/xVmNKnOdZr/tojd8wGziczDxD1E0Sb/aQIEo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2098 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.6.109; envelope-from=vsementsov@virtuozzo.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" If you run './check 303', check includes common.config which adjusts $PATH to include '.' first, and therefore finds qcow2.py on PATH. But if you run './303' directly, there is nothing to adjust PATH, and if '.' is not already on your PATH by other means, the test fails because the executable is not found. Adjust how we invoke the helper executable to avoid needing a PATH search in the first place. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake --- tests/qemu-iotests/303 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/303 b/tests/qemu-iotests/303 index 6c21774483..11cd9eeb26 100755 --- a/tests/qemu-iotests/303 +++ b/tests/qemu-iotests/303 @@ -56,7 +56,7 @@ qemu_img_create('-f', iotests.imgfmt, disk, '10M') =20 add_bitmap(1, 0, 6, False) add_bitmap(2, 6, 8, True) -dump =3D ['qcow2.py', disk, 'dump-header'] +dump =3D ['./qcow2.py', disk, 'dump-header'] subprocess.run(dump) # Dump the metadata in JSON format dump.append('-j') --=20 2.29.2 From nobody Thu May 2 15:02:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1610804872; cv=pass; d=zohomail.com; s=zohoarc; b=dxbHh9mijYcB+P3h7UDCz8J8msrwb3VhckuJNrmkXGYNsIlgKoRwMeBXrQ88SjLRKHloJrywzIATb75jkhtBIpEP2O8N+ZSSaCn3dCQvBDqqbtavaZG8A0w4dsgnwEG04/8QYAZsi1CAjQlmerjlfxCKRNrbucfdNX1zg28L3lY= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610804872; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=M3GeFnsUXnYJkynJQB6sgGQCNimjAM7l1gIzxFb0qLE=; b=ALro9Qsq+yF+1OHL1dpGsP7bUgVtxs2IXSJGMYZkE0pDxmxQB+fZCK8tEDHKir44heaaFwJqLUCucWb0YdMb+xCUt8ygHcFSaNtSSwYSdfyRiGSSAkPf8cF1mZsb84/l0Tz7dxxyVfrE9iSFKLyRCzJT1i43mbP0fC84t1rgo58= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610804871833251.65107978236574; Sat, 16 Jan 2021 05:47:51 -0800 (PST) Received: from localhost ([::1]:37082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0lvi-0005X6-Ea for importer@patchew.org; Sat, 16 Jan 2021 08:47:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltB-0003AF-3i; Sat, 16 Jan 2021 08:45:13 -0500 Received: from mail-db8eur05on2123.outbound.protection.outlook.com ([40.107.20.123]:62560 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0lt9-0007XP-1K; Sat, 16 Jan 2021 08:45:12 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM5PR0801MB2098.eurprd08.prod.outlook.com (2603:10a6:203:4a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Sat, 16 Jan 2021 13:45:02 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8%9]) with mapi id 15.20.3763.013; Sat, 16 Jan 2021 13:45:02 +0000 Received: from kvm.sw.ru (185.215.60.72) by AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.4 via Frontend Transport; Sat, 16 Jan 2021 13:45:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RJDuPxHy+ibSYowuVHmMZfn2cnwBKdX53EfRSDvBV530tw3GeDAcZ9oX7kbNX23vUyuN1ZAc+/VjtnmYtZl47k8Ml9ia+42dHrPxMhOsmzmDxjZ1vWtT2n5d5w0g5NKL0CZhXUILPTYyA3TwxfIlJCunrv0Tie5gqq7u4vuhCuhpwhJD2m1RWPYye1YVG32E6Qi0fnZ8xBaybXoXjJqoD9yfhGDzyqHUg4vwmVILHBvtUnMF3stPaR04I0yOu/AEHaF8+MmbTXza/iAUC1J2np8QtSsmYw3YYTvJwyAR/81nJjLWTnJS2GP5SvvzenpBNKnW5BnRI+O7hI5qu1RHUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M3GeFnsUXnYJkynJQB6sgGQCNimjAM7l1gIzxFb0qLE=; b=TGIADDHtp8jB2Yfrybo+fvxHN0B7/vZP/0Zt2heV+1NEcmSu8SOao5TUhoIm+TkysV96kQuwl6CrjKx9o9DWl0IRBHPY58vdSetuFyfBg0gZEUrMFayq8Ho7rUwZfVGPfobUv9nr5JYH+VOFy2RQBXamXDNx1OpoJxhiNgWOp3Te1c++Rv6m9Q7O3Wz7qSKZMUsfaKcwkQU3LCt0QUzXHnkWjWQAYQ90mBjIH5pRt3XwECuekmem9JIREJ4JiyoIeCZvz8pzFbR5IbGFpgkQI5fW2p/in2icthNY6yHEAjk0jQ6bn5cF64VCm5oVwWimuHqaya5qiiqWfTcyPEdF9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M3GeFnsUXnYJkynJQB6sgGQCNimjAM7l1gIzxFb0qLE=; b=b4FGUs6IaCOPm4u27i/p7seh0SyRIQQ0gocaHx9nH8RkEq+hOgZl3BfsHxio30HJzdyUGyrq/FxW7Od4ZRCFzoqpRQmaiDBw4FjPsDRjvHtJGp5Gk6Dd6po5KqkinHQYD7eMag+uBHBWmo6bYwgN+/kXPbyerjRPc/LYIb4VjtY= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Subject: [PATCH v7 03/11] iotests: fix some whitespaces in test output files Date: Sat, 16 Jan 2021 16:44:16 +0300 Message-Id: <20210116134424.82867-4-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210116134424.82867-1-vsementsov@virtuozzo.com> References: <20210116134424.82867-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.72] X-ClientProxiedBy: AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 21154982-5950-46e8-e0a4-08d8ba24ec6a X-MS-TrafficTypeDiagnostic: AM5PR0801MB2098: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:530; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7iQI8V1jDOAuq8hMzuqm02oj62tRTPYSOoANXSz8sCGyrmZZqj5fLsykb4eYQig9vn8gX+RIPgdTK/FCQimA3QN0YtYN8SJmBeLrStFkkh0I5xtYgPNh7IbrRM5ByGC/RYtQ9zK33JHg48ADBy+VhYjnapNJv/9XnaShIQ/pqU0txIai/wSwT33MJAptRZu8yyLEWmcoY65p9DL4QdyqHw8Q7+gjehtoxnEA0fxSJZTsKyOFV4h3wHoaJUXiUjRW1mKXlUpjjH30yVkq4bwwmEe8bKHNESebTF1tCCTy42nCddzdvBTceR5YJ6yPKxXSa+uZrVbsQhs3FDqGLDbI70y1GLP65j4UZ7kfw44D4K+CE4oIZRwQR4WA2VzTpxXRhYbIJ9zpceFksnGQTGYNndsu5zUr4pS+zvcEnuBaGeoBO0d90GgZysC6Am0MduHPPnPnIM6lu96ZyGtB80CNQGPF1D5yg6WfdxTiLt5fSeHnTxY9+6oad+8Z/9tAME4r9MYXJSPpa6t/1m1BX0iSLmjk1NBdfZJNw69zglR/oM0lQ2DvJ+ERgZWekqcQQ9Ow X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(366004)(376002)(346002)(39830400003)(6916009)(36756003)(83380400001)(66946007)(6666004)(6512007)(86362001)(1076003)(66556008)(5660300002)(6486002)(66476007)(6506007)(478600001)(4326008)(8676002)(8936002)(956004)(2906002)(52116002)(186003)(16526019)(316002)(26005)(2616005)(21314003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?TPS5wQkw5zUiYIP9Ih1ekZvOZFY5DgsakHf0s4yAmawiqICR1YPIPKrfvvFW?= =?us-ascii?Q?XxkRm3cyBfU0ezxIqdq6/TOlfNFRtYL4h/x+qFpjxShxEzwxEcKzqG9P8sDZ?= =?us-ascii?Q?Tn4CWd927Iu/ps95UwULOH5C3FodxHQ/DfIs1r8LtTghfFP0bPVdN+S34LU2?= =?us-ascii?Q?71kIC8I5O/7mF6geZFgH+dUtufgw4H7iKzG/FhEnnBfTw5L84/hoWphZQZ3+?= =?us-ascii?Q?MsR+a3jhKTMmzESUefMddXxbp965F/TUlXTJA59wGJLCy+QLO1u8lom4Fabe?= =?us-ascii?Q?FWDOCMf5tDGUaoTvDg37m0yMt3m3/fPT1yNh5uofiRrW9C3Rlhx5SPPFkaAx?= =?us-ascii?Q?3xDY47iTnoi2OvDVRDQt3Ev+Ae06je3sETBnxEsd3eXgcNSChLs3YQsXepz5?= =?us-ascii?Q?4LGdAIY/P5eWOQsQjUdtgQFV2CjQ0CP5ZEmWHS6O9lBItFBUTWtsl1n7cwoX?= =?us-ascii?Q?7+nFhb69mTLCv5vRbkBCAZd2gMZjcxqIhndR9lzrSgkE7mVdEjBsi4XlAq6P?= =?us-ascii?Q?987SwPXfqReWp948iU2D+mf0y01MmtFcaTm0viKFrCQmcXk/XfHY38CsYuI2?= =?us-ascii?Q?aTkXNm3K/hRWPaRnkSjAd67n1tq+xNPt5SIepwiBY9trO9hFgAg0FPWcGqfC?= =?us-ascii?Q?PIIxPK+DiUPTRZHgaDhv341UkWnKvgbgidpxYrQuZ46RElslpXzQXtaj86zF?= =?us-ascii?Q?wl+vESiJ+lMboT+Y4BbSuCdX23gSZnjjQJQV+TpoKRS/byrveEPA+vyGYHMd?= =?us-ascii?Q?OT8iwtw7CrDgeIQR2aq4BwMAhnxEZw1hZomDZ1jrO5acCq/cymDjwMrR7DUd?= =?us-ascii?Q?XyIVFEPm83+GCDCzwG9+2rrB3/IQg7E6LsFc8m5Rat8ZNtLPgwAnPnpCU8H1?= =?us-ascii?Q?Vf8OcOEED1C5HRoLorFka5MIGas9/k8XvTPoUYHk7B8SP7aHzJnKQMy6WNyS?= =?us-ascii?Q?hvxHV13I67eBW1WvOynkBWELUzq8QBnPvbcZdZjejOqGxv1sg+z+aKcRvZX3?= =?us-ascii?Q?Usgr?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 21154982-5950-46e8-e0a4-08d8ba24ec6a X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2021 13:45:02.3475 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: f5Jd9G22f5rytDaaI/pdAMRN+tFS1g9XA0/WRhmH0UtqwBL7p/x4+cM8cgWKTT2gSX0fi/PRy+Gfb0P5cHCnscqWbGHoWeydLROX+IGocxs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2098 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.20.123; envelope-from=vsementsov@virtuozzo.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" We are going to be stricter about comparing test result with .out files. So, fix some whitespaces now. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake --- tests/qemu-iotests/175.out | 2 +- tests/qemu-iotests/271.out | 12 ++++++------ tests/qemu-iotests/287.out | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/qemu-iotests/175.out b/tests/qemu-iotests/175.out index 39c2ee0f62..40a5bd1ce6 100644 --- a/tests/qemu-iotests/175.out +++ b/tests/qemu-iotests/175.out @@ -23,4 +23,4 @@ size=3D4096, min allocation =3D=3D resize empty image with block_resize =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D0 size=3D1048576, min allocation - *** done +*** done diff --git a/tests/qemu-iotests/271.out b/tests/qemu-iotests/271.out index 92deb7ebb0..81043ba4d7 100644 --- a/tests/qemu-iotests/271.out +++ b/tests/qemu-iotests/271.out @@ -500,7 +500,7 @@ L2 entry #0: 0x8000000000050001 0000000000000001 =20 Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 L2 entry #1: 0x8000000000060000 00000001ffffffff -qcow2: Marking image as corrupt: Invalid cluster entry found (L2 offset: = 0x40000, L2 index: 0x1); further corruption events will be suppressed +qcow2: Marking image as corrupt: Invalid cluster entry found (L2 offset: 0= x40000, L2 index: 0x1); further corruption events will be suppressed write failed: Input/output error =20 ### Corrupted L2 entries - write test (unallocated) ### @@ -515,14 +515,14 @@ L2 entry #0: 0x8000000000060000 0000000000000001 =20 Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 L2 entry #0: 0x0000000000000000 0000000000000001 -qcow2: Marking image as corrupt: Invalid cluster entry found (L2 offset: = 0x40000, L2 index: 0); further corruption events will be suppressed +qcow2: Marking image as corrupt: Invalid cluster entry found (L2 offset: 0= x40000, L2 index: 0); further corruption events will be suppressed write failed: Input/output error =20 # Both 'subcluster is zero' and 'subcluster is allocated' bits set =20 Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D1048576 L2 entry #1: 0x0000000000000000 0000000100000001 -qcow2: Marking image as corrupt: Invalid cluster entry found (L2 offset: = 0x40000, L2 index: 0x1); further corruption events will be suppressed +qcow2: Marking image as corrupt: Invalid cluster entry found (L2 offset: 0= x40000, L2 index: 0x1); further corruption events will be suppressed write failed: Input/output error =20 ### Compressed cluster with subcluster bitmap !=3D 0 - write test ### @@ -583,7 +583,7 @@ read 524288/524288 bytes at offset 0 read 524288/524288 bytes at offset 524288 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) Offset Length Mapped to File -0 0x80000 0 TEST_DIR/t.qcow2.base +0 0x80000 0 TEST_DIR/t.qcow2.base # backing file and preallocation=3Dfalloc Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D524288 backing_file=3D= TEST_DIR/t.IMGFMT.base backing_fmt=3Draw preallocation=3Dfalloc Image resized. @@ -592,7 +592,7 @@ read 524288/524288 bytes at offset 0 read 524288/524288 bytes at offset 524288 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) Offset Length Mapped to File -0 0x80000 0 TEST_DIR/t.qcow2.base +0 0x80000 0 TEST_DIR/t.qcow2.base # backing file and preallocation=3Dfull Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D524288 backing_file=3D= TEST_DIR/t.IMGFMT.base backing_fmt=3Draw preallocation=3Dfull Image resized. @@ -601,7 +601,7 @@ read 524288/524288 bytes at offset 0 read 524288/524288 bytes at offset 524288 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) Offset Length Mapped to File -0 0x80000 0 TEST_DIR/t.qcow2.base +0 0x80000 0 TEST_DIR/t.qcow2.base =20 ### Image resizing with preallocation and backing files ### =20 diff --git a/tests/qemu-iotests/287.out b/tests/qemu-iotests/287.out index 6b9dfb4af0..49ab6a27d5 100644 --- a/tests/qemu-iotests/287.out +++ b/tests/qemu-iotests/287.out @@ -10,22 +10,22 @@ incompatible_features [] Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 incompatible_features [3] =20 -=3D=3D=3D Testing zlib with incompatible bit set =3D=3D=3D +=3D=3D=3D Testing zlib with incompatible bit set =3D=3D=3D =20 Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 incompatible_features [3] =20 -=3D=3D=3D Testing zstd with incompatible bit unset =3D=3D=3D +=3D=3D=3D Testing zstd with incompatible bit unset =3D=3D=3D =20 Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 incompatible_features [] =20 -=3D=3D=3D Testing compression type values =3D=3D=3D +=3D=3D=3D Testing compression type values =3D=3D=3D =20 Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 - 0 +0 Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 - 1 +1 =20 =3D=3D=3D Testing simple reading and writing with zstd =3D=3D=3D =20 --=20 2.29.2 From nobody Thu May 2 15:02:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1610804861; cv=pass; d=zohomail.com; s=zohoarc; b=bfU5aK7rJUemCfXQZkSqqsKtczWrTIxje8dzz0atoDWC3E80FwaKGvlYEWTeoXrGaki3xUTRuEmSsDpXG4oWmiSp2nlWeKMqhyDZ9V6qB1qu6vy3pVRCevwGJJL+o4bJsnUlnuWAZAqqghzbyVepgY9SBbzsbWlX20G6Q37v9n8= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610804861; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=cid+p6yBnXUtqkTyANgudbh1ybkLKSIR+Rr1mifiMuE=; b=ADsBESDFu6cYZKWoWFa4jYXekDtzIUG/gXlxwTENdE5oKU0IcW7/YZ9rSAC0r6LytctcDUE+6UamK1dlBYSjexOrmWHbXUZS04lJy9JlxLoDdEPfRBJW1m0j2ltwYvAUSmuTD40L16mlgIX7Wwtlqiu1h4cb7tYBRwRDQUmGSAM= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610804860966644.4209214055395; Sat, 16 Jan 2021 05:47:40 -0800 (PST) Received: from localhost ([::1]:36052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0lvX-00054f-Gr for importer@patchew.org; Sat, 16 Jan 2021 08:47:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltC-0003Ck-DS; Sat, 16 Jan 2021 08:45:14 -0500 Received: from mail-eopbgr60109.outbound.protection.outlook.com ([40.107.6.109]:49662 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0lt9-0007U8-M8; Sat, 16 Jan 2021 08:45:14 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM5PR0801MB2098.eurprd08.prod.outlook.com (2603:10a6:203:4a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Sat, 16 Jan 2021 13:45:03 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8%9]) with mapi id 15.20.3763.013; Sat, 16 Jan 2021 13:45:03 +0000 Received: from kvm.sw.ru (185.215.60.72) by AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.4 via Frontend Transport; Sat, 16 Jan 2021 13:45:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fc3zz0rguwKN8jf+2xTU5wFb8u2lKKSiD2RFbKYebmYL/qeEF8/bveiXyhZkUKUot4MYwHGjmUh0Bwrc3VVGyV4K2iP7YZTv1XMLjaaFNQOl9xTiK/pAHHMrtz+laVDAZNm1lWaR8Dpkh0LFUaw+V+deZWyzq4bOmYKo13AAehzzh2fF1r4+YwWOk9DpvFKYjLAjmPjYVE9XyV0IJSXoGCpoZLkIajfhwoIRh4cuSXoFG4g1coXeZ1PdYLmM0AAsi6tWmdxx7y3qYSMjyzgWhUjSgnPjB2cdZLf/pR7/xzkdKt0EGoxeustm0s/3S5rRpuYkXXC3mKE2Gmapg/XDLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cid+p6yBnXUtqkTyANgudbh1ybkLKSIR+Rr1mifiMuE=; b=H7sY5eypQ2XEzgAufpmfXhlg0BuMK3TgN2e2OGOSXeL7jNs8bkrmERvfd4uGcvmZnomCr3of5TFUheEefDQQ6+wK4lLWLdnNmMvbw8hGK2v/o30sU/k+5G5P3yLPERupx44jAV8/Jbiz1yvu4Te83MJb98UFXZ5TXmMCAtv3M+6kE03Ro7/DWztvZCKqK5vjJS7sghEMNfX9QgASSfKYyI3LZ2TkTu0vF/KctZTqIu4pQSysATenkdHPtGGq13PyK5Ulg8QXbJ+35sY4/Es3BkdahCkdiOPvwYIs9XlmJHq3v7dDwSZwmAUa1SLfvJQE+jyHyfKMLAPI3TEQ5DxTMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cid+p6yBnXUtqkTyANgudbh1ybkLKSIR+Rr1mifiMuE=; b=lFJbP9l0Y9jp/VORyE6VBPqkEW6lONrQOEwopj8uRXUjByjWxEfq9wDIxhvzDWMTOSwKEy2koqqC6z+PNfsEvZUkXzhCkwoTkXF9unsLqxDbDvI2dDwaOK5Rxp2VHwYFwUFQlwyndh7tAlNECauDOmdxFKReXYiCOf/1m94Sdrc= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Subject: [PATCH v7 04/11] iotests: make tests executable Date: Sat, 16 Jan 2021 16:44:17 +0300 Message-Id: <20210116134424.82867-5-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210116134424.82867-1-vsementsov@virtuozzo.com> References: <20210116134424.82867-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.72] X-ClientProxiedBy: AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4ecc5dd2-da3b-42b7-f312-08d8ba24ecfc X-MS-TrafficTypeDiagnostic: AM5PR0801MB2098: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:206; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fK7SEFsZFvi7OZR5/kqojd/B97lzOKqYUliXtlgHdJLwCDGzE/06mnKDVBO9V6FeQU4liWM8poKRz33Gc8QpLwuDyIzdqj4fsV/A/mkyuAFcpeJua/GixcFNwVv0IcP1BWLMzPrs8RKUfXeRtIIEmLpKETWImAubbgEL+/KS8nrtFSafLqkrEpEUsCHpICUryYgfDslNCWlkK79kd576kwogtz+pPlC0xidSNsXYEuGcLoUG+ssnoOLOiCGTahdHHAU5uX3t1C8DOTCNDpDgtUcnlCWCIlVqUswNffGY6CsWwAr5n8X9NWWFkZ25SvFm9jrFDfxyUVeRP2D64QA9LI6aeRXnMk64POqhUvgHrxta+RGips96PFe0YfnbllefUK1tWSx2t2/8ZwM6CtMrDGB8XNQKwnuRIl9oaIfsyqiO+iwE1aoLho6mJN939O7apICQVJXsqwhmKWyGWgkyxXfJrQYSvReX56JaYavjlDrT1xkbif6NlIbqlHz3meos6m8dAtbEYps06qBP2tfjPg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(366004)(376002)(346002)(39830400003)(6916009)(36756003)(83380400001)(66946007)(6666004)(6512007)(86362001)(4744005)(1076003)(66556008)(5660300002)(6486002)(66476007)(6506007)(478600001)(4326008)(8676002)(8936002)(956004)(2906002)(52116002)(186003)(16526019)(316002)(26005)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?EjnMchsk/81Tm4xCKW6WpppIBc5LCdfuMmJzw922n3hIIs20XFA8dqJfKdkC?= =?us-ascii?Q?OHkGpr8wJcg3nu7OMWm+1SnUwx+7yOZiS3T6ConpomrhH0Vp0V7DrGrafQUT?= =?us-ascii?Q?J1ok1AHkmBTmMwJofiWdn64qzaP8TIKZ8PJqLdAyawoEK7j5HyqF133M36Tl?= =?us-ascii?Q?gkLLocnLZiy/6CjXo0iSF30jhkJndbjmFzUB++pZTyZ8ucw34+hcUU1mecYa?= =?us-ascii?Q?5lGcOCTa6ZW48Mau96W+invRJSLyC/kJImFpBMbQ0ADs2fXyanypi1M8HCac?= =?us-ascii?Q?3k4Xf/Wv+FZ/h/tYqK3UraPItvSoRFKN/tm0zKm58Z+vl2iF/lVYRAJocj+W?= =?us-ascii?Q?gMFK7tqTZi+y+lzrkjqVrDCnPYIr54SYfBfVBWIQwNr+Bkc1mzovuRWe+RL9?= =?us-ascii?Q?qxY8O6rSL4iU9NuF4g/yAJPIzJVZK5PM2qB2BSnyDZukXpLFItkoWMoekd0h?= =?us-ascii?Q?w+7s9XgXZd8RfJDslWPDJB9Jno6wwGHYtKAa3g1cSt3iVBO6VRUcr1mGFQ8E?= =?us-ascii?Q?+Ago3A7k6ueXc7Kxp0Err7iFIDy4+qRBwkaXJc2FulrZQWQ3yiAPXWFFohHg?= =?us-ascii?Q?uDRdchvU2a0WAWffvTEff12RJYHtXj0EXYOisc1wZZFfFOeEIvxZYCEsDJab?= =?us-ascii?Q?Wm62LyRDiYoBIzCR4xtVbBWu+bTW7AhaI9OJ6jnsnmuznD0RkDq0FtJ0qByZ?= =?us-ascii?Q?Y4Ob11t3Q3aN0WCXE1EIQzOl12p1sPm9Jz3p/iSJNA8STSDaYwSEB2BvoWmz?= =?us-ascii?Q?2PET/og3sun5vTUAwyUsKitXVBK2uTD8X5yLGhCaXMyQOJTO29NwRtAuEaJB?= =?us-ascii?Q?wI0kEkZ08SIb8H6tWIMDutqlsUPX6lxK2VlDgpf2A68r8upZNzBHrUEdQPzI?= =?us-ascii?Q?NRopHOEFFp9f4RbexpBJUnCsB/KTdODNtEniDIn8vvDb/i099WTcxDTunvm5?= =?us-ascii?Q?0aOko8f+89yQsJSwz70uj1esomgDI0kZNgEU9H34tqbmHq5K21pa24czPlY1?= =?us-ascii?Q?F9P2?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ecc5dd2-da3b-42b7-f312-08d8ba24ecfc X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2021 13:45:03.4024 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jQl531khrgmqkppkR5f1Wo72uOOiTBL7NK/U+d+w/4h7BOD+wZiD0mjldRBRoqPKeD6MX7hVpGG7X37SrRHi/ui/K0k8xIEVswQm7mx7mVM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2098 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.6.109; envelope-from=vsementsov@virtuozzo.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" All other test files are executable. Fix these. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake --- tests/qemu-iotests/283 | 0 tests/qemu-iotests/298 | 0 tests/qemu-iotests/299 | 0 3 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 =3D> 100755 tests/qemu-iotests/283 mode change 100644 =3D> 100755 tests/qemu-iotests/298 mode change 100644 =3D> 100755 tests/qemu-iotests/299 diff --git a/tests/qemu-iotests/283 b/tests/qemu-iotests/283 old mode 100644 new mode 100755 diff --git a/tests/qemu-iotests/298 b/tests/qemu-iotests/298 old mode 100644 new mode 100755 diff --git a/tests/qemu-iotests/299 b/tests/qemu-iotests/299 old mode 100644 new mode 100755 --=20 2.29.2 From nobody Thu May 2 15:02:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1610804871; cv=pass; d=zohomail.com; s=zohoarc; b=XbBeQ8U2kFn0QA1oOenVmK275JZ43pc66nH7PyGlY/gq8YH+SlmOoV5yczqkfloucildVYg22UuJUsl2ACRl/rRwRJXN1tLxAOqsJmVbZD8jfEmDK3zkIDpyqNdvADxCxEeNgPlY8nEkyIbE0UPbMf84bBGUCDpxR3Lf8kPZ6oA= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610804871; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=49zj3gRR2AsSH3W0u0NdB90YiuUVTc9NjhzXP6v12Mg=; b=WQ0bA1kCPDJQg5kU5dqSXJf666E3HnNf6uWzEjFSHxxHEEX558tnSyvHOotSGpagPZtdjFQsQyW0OYNN4tE+W/cXLj2JjBZ8nIQZncw6dt7flHjulZfSwgSAE5FlfjFYKmD/R8OFLRn//CzrXWujnlVQKmhoDEMc7FO0FOq3vCM= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610804871753210.9850139348025; Sat, 16 Jan 2021 05:47:51 -0800 (PST) Received: from localhost ([::1]:37150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0lvi-0005Yn-Hk for importer@patchew.org; Sat, 16 Jan 2021 08:47:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltD-0003G6-Ul; Sat, 16 Jan 2021 08:45:15 -0500 Received: from mail-db8eur05on2123.outbound.protection.outlook.com ([40.107.20.123]:62560 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltC-0007XP-76; Sat, 16 Jan 2021 08:45:15 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM5PR0801MB2098.eurprd08.prod.outlook.com (2603:10a6:203:4a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Sat, 16 Jan 2021 13:45:05 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8%9]) with mapi id 15.20.3763.013; Sat, 16 Jan 2021 13:45:05 +0000 Received: from kvm.sw.ru (185.215.60.72) by AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.4 via Frontend Transport; Sat, 16 Jan 2021 13:45:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eqqBZuX2Nd+RcoPYyTAVl1YctXVrRKxBo0i+tY/L3DV3li45Ln2rWdLCGQ/+rF6JLtoupzDwpsDNxOBOFr1iGElWLhIk+VRmUwYAMJ0o49Z2J4R2wzs3jp5huF0t5jul4sYBd1OW6KPgHqNGKrnTIWO9OnsgHsxqGd22HsE+D56gryQsWo+z3/8p4zbc8OXTgzBY0CaxQo5tGyZ5Q2lTwAccnlXhQvzfeOcNhxzDGB17GX30UaIhY52DEJxZ1Xky4TWcJulQVv029ZFq6tpXTo8fPz2Mk/uX+pD21zu0KflncBn5lPlJyzkY768/aBSFNqLEyrh3Uy1328I+6HO1ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=49zj3gRR2AsSH3W0u0NdB90YiuUVTc9NjhzXP6v12Mg=; b=XzmZP6SI0wgrqPRJ2wlUBQQHzuqclDViIdehmc2Gvabvo75JbCkfXjvsudAqInZxz20b1diFgrJcMms1JGbnJpASa/gxWpzsFpOFtYaS4KFLS4UJhpO9cJE5yXIvivLddkIONJHtvvR7/toZmi0JYjeekz3AkRBt53WYoccAZEwxPfMbYNCzXjswcMJuXOldi0/xvg4d9gj/z4uY8O3TifcdrgoV7F8h5pik/8QLdEpYCRTpA1itfXHk73rxsakLPJAtk5Ac0NUWGqE7385M6E0QtmEdWvZSXvC/Vg0wpFgqxg6UXixnAyFbJRpMnEp7wU2+wrvKk/wl93j0pZJs+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=49zj3gRR2AsSH3W0u0NdB90YiuUVTc9NjhzXP6v12Mg=; b=Y9ZId9mSoP3xGqOkreHKR5zYxT6HBLvJsVAAOO8IKV4VNIZrYwAMXB491iUE1PnyR+mcXYw/NiiPDMzM1jCUJ7e+rEyifLkS3T3I31ouPv4URWUBksjOI1WuuvYJH2MKE6kyqpF+WLmPU1BHrZwvfvaWke1UlrdzcgXh0lyySDk= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Subject: [PATCH v7 05/11] iotests/294: add shebang line Date: Sat, 16 Jan 2021 16:44:18 +0300 Message-Id: <20210116134424.82867-6-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210116134424.82867-1-vsementsov@virtuozzo.com> References: <20210116134424.82867-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.72] X-ClientProxiedBy: AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ffa70899-3661-4d71-e281-08d8ba24ed9f X-MS-TrafficTypeDiagnostic: AM5PR0801MB2098: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:296; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cpWjFzIrDw5zCDqXCMRxOzya6eAnYImOj64FBUqWUs2n/KIXaFwAf4Oepaw+wRfR9JvcMNtOXmgxu3m8l9c9eiXJdyqiKjL49hvE/uuvVKcLOUCL07U3S7eNZwy3pmXObbxAg1KdlYZKaIyNagq1cC/UNPsNZvyf0sPD722Ni6hRmgzRBiunupDhoqkURttUGsFDcIJuutWW+WPnRX15enzqk5legxDa1FOtiWrFkMHIVq68nnpFUiXYbQ4FqNeKf2H3lhoU2CbOWMujpAtoP5klbAhNjMSotf0Ak+bED0WDR3cR/q+k2awOE1PniABPdfoElmGWIBHaYhAdiaqB49bDix+xZ1VMUBjJZ4ZZpC/eojhk25XEXLqpwf3nDllYpuu+uafL0QusZ/lkKMSc7G0+CnHL0Zq0Z8QPFg9ckl9WLD0wN4khuZtxI+upqhv6PBsqfGvoa6BPzYOKyGcdTEvLDo0mugAUVUAU37FZMaFgzJvt3XeCIONaQYRiCwLdNqaCoA+SQOLYGBsMnKHwDg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(366004)(376002)(346002)(39830400003)(6916009)(36756003)(66946007)(6666004)(6512007)(86362001)(4744005)(1076003)(66556008)(5660300002)(6486002)(66476007)(6506007)(478600001)(4326008)(8676002)(8936002)(956004)(2906002)(52116002)(186003)(16526019)(316002)(26005)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?A1DQnt96NUJGtA/xIwBzmnx8LRfDtclryEgv5+lxRPUMjUNe3ZneFwxdv/OF?= =?us-ascii?Q?ERCnENjAXPLlY7DLTVwzKFg33Psdc0WAP4Stixl5Jarge7oKYMNmgsvT5aiK?= =?us-ascii?Q?Z0QO0U+EKSlFrjfz82NBVrcy56Bw4ge5/JA8F9nwKcVqDRfpa/ZSfS+n0EOo?= =?us-ascii?Q?39GJ5uHHNCGiE2yvwTVyTU6IgGeZwlUIPIq5o/ARD7Ck/w03vr7EuKGvZIYT?= =?us-ascii?Q?1ZJWfgxSG3WE2gW6hAzfrSeL3BTnJufBD2fxDJojdirf1+5wMrlUYTzPfPyv?= =?us-ascii?Q?EOpi4UDRDATZDsv6ybXsxJC+u4If3PYNzYrgnODrvP3h6UQ39vp193MC1BCN?= =?us-ascii?Q?d0d3Vim6Con6L1ENWAnjJWPkEgdcD/l3TcD9A5ZXSLMEifYTXp/8z8N9mwsO?= =?us-ascii?Q?8Vrl5D9Ef9ZOV/hCUwTg3KSAOmbJj0yuMy3dBJrHXIhrw7FCcDczb5dW1DIu?= =?us-ascii?Q?+sWlYzB0PVFj7mYggTnvni9qQRUkf9eI4KsJBIag20pJ6D/fJKJ1g8nPH9FY?= =?us-ascii?Q?4RWHtj6ytACynoI0hmxQZ0jCeQmhTNM0av+3hKBMCdrqsiSsIy00FkfxT213?= =?us-ascii?Q?QHSSJres9axot2E9nH++A505uwNNmXFHVaGk63geExGdHGuU8NsOBwqweMYF?= =?us-ascii?Q?giqfgArs+AaOWHPHTbwoYnIo23LI3FJZhiTe02k0lDJW/qVRcoBukC2g5+tP?= =?us-ascii?Q?/olBV05T5BbNisRWV3D1NkKcQSu6ycspy4FtMsmpSHgQWq3qVdZ6Lx8gUFeE?= =?us-ascii?Q?w+Up+EC/JsZiYDmcANE6bwwwB92BscMyR5Mx9H4UfI/x1OOuLTvHwomrJRoM?= =?us-ascii?Q?xmX2w26Khj4W+Vm/UC+U5WtkHbypGXrB7oHWYzx0GtJdvNnl5Ecec0nrXyHJ?= =?us-ascii?Q?GCvYHNdhOxb2YrCWrbjt6v02XFPReCAGQ3KBAytSKJmQVcd/Md2OOpimDwoc?= =?us-ascii?Q?1bX3KokyXMlQMWdlneyBSS2FzHujT3vVrJM/rU4ht9HoroMFs9FAfwPnO5cf?= =?us-ascii?Q?/Tjb?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ffa70899-3661-4d71-e281-08d8ba24ed9f X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2021 13:45:05.1900 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +i+DN2LoZyrF1KWvtXmy+FVXjxxeOEgQcbcsFxu5B1IR76w4kAuLdnTH0ABMectAHpN7AkYWybK5+gFbNAAbP/TfRLW1ZjpOvqKnjvp1sis= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2098 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.20.123; envelope-from=vsementsov@virtuozzo.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake --- tests/qemu-iotests/294 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qemu-iotests/294 b/tests/qemu-iotests/294 index 87da35db49..4c375ed609 100755 --- a/tests/qemu-iotests/294 +++ b/tests/qemu-iotests/294 @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # # Copyright (C) 2019 Red Hat, Inc. # --=20 2.29.2 From nobody Thu May 2 15:02:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1610805702; cv=pass; d=zohomail.com; s=zohoarc; b=i25d6BGg9YCnevHfy0ca34NI2DPoCkHlblZUtmGD+JI6JH5HA3PtXS016KR/u5gBy2QlSZagzimKI035VYzGP82y4aV/BXK2D4ylnPT+PbOpNnSK4p/ydUGNBo37ssQ1nC50ZyBFlqnBQbiGz/DQFIyaetUgySGjySvSsOOkCgo= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610805702; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=wZPxb5WI9vBpHKRA3Te4K5yhJHMYjv3vLWmOXiKDBzw=; b=Nwlsems0uPAuL2MWZgaBglVmy9ZBZ/PkUPooM9hnpNW9sOA5Kdq2jwaGbNlVVF8mYolGDYGBuAIuJlElTTKJGbbjPUlTivKiuCKWI+0Wb/oX4Ket6qpwH+eu6z2ypNyM+ljEdmh5M1kOKhN/hY8D2K5xYUNO1JVyzx25UTHl7Dc= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610805702331714.1828750502257; Sat, 16 Jan 2021 06:01:42 -0800 (PST) Received: from localhost ([::1]:34508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0m95-0008Du-H6 for importer@patchew.org; Sat, 16 Jan 2021 09:01:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltP-0003dE-Ir; Sat, 16 Jan 2021 08:45:29 -0500 Received: from mail-eopbgr60109.outbound.protection.outlook.com ([40.107.6.109]:49662 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltK-0007U8-3u; Sat, 16 Jan 2021 08:45:27 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM5PR0801MB2098.eurprd08.prod.outlook.com (2603:10a6:203:4a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Sat, 16 Jan 2021 13:45:06 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8%9]) with mapi id 15.20.3763.013; Sat, 16 Jan 2021 13:45:06 +0000 Received: from kvm.sw.ru (185.215.60.72) by AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.4 via Frontend Transport; Sat, 16 Jan 2021 13:45:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SYazwZ23j/ATVeSoDlX3Fq2Te9WsxxV4MpjDNnvYAHaAHZ/6+qNMB0gbLe5JpXkBWozsxB5CEJZE0cRMXXwLDFmXfHs+Y/xCgwNlM8l7b4a7dT7NK3FLDMH8fkO+jSKkz+4Soe1nbSRPqcHy4pLM00Kl8tjAziFSW5/gD5wKj+hz+hnN2rYlC2n4F7wcEdP8E3ob27Mb/vz2cpjq3vgRQlycO9a2IjUsCQklCcVWIP/nhFZ8yhnlp/eKgYnqXbbugN8l++LjbiWKaTA6XD5PrnRG8svNaZ/Qet4K1JCaH7kfJyP2gqW+XbbSm3Wm/1yErPi7MFO0a9jwvlSUDoQjkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wZPxb5WI9vBpHKRA3Te4K5yhJHMYjv3vLWmOXiKDBzw=; b=Xuc0AiPxlDUB21t04QO5ncV/L9IFXjdLmoEb99LQ4zrcpnj5tfEG3SNF3L44kNoESRwEIENp2fktO9eVvJNWNR3NdeUKkGHZkwYSBWuSFVExSSrezj8rLPgve96r8tO9O+FqcHsJdz3EJEQ/wE2OKrH5LK6lrttNFhSQUNdMAY+3/GDZ877GD7eJo+ekfjpCYwAeI3qL0VQ3S10xwSTWw3v4e594yENFArRiNAnymfZJ6TzPe1YHhqOMolRuogK0wK4Ltw7oq63eAlgyXNLOaF3ogJ0b5O7O8EifEjmEETd2SEoZ0Nbo8RPMKSdLVglxJFXjN3JOCgmZrz/foG8HTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wZPxb5WI9vBpHKRA3Te4K5yhJHMYjv3vLWmOXiKDBzw=; b=R/TOwJShN9oGpWAwqLo9W3Wfm3O2FV+7XQj4UOIgRgMkohW8vjbt/XKeetT4z8wUg2Jay7TYxIHgUHA5ZReUj5kqs19yG5fUbFdsr6gtO7t4jKjMzQroVD8mXNrETwNCiXY9UAyh54XoRtD+UbxvqHfLD/q3UVAupwDod02ikb0= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Subject: [PATCH v7 06/11] iotests: define group in each iotest Date: Sat, 16 Jan 2021 16:44:19 +0300 Message-Id: <20210116134424.82867-7-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210116134424.82867-1-vsementsov@virtuozzo.com> References: <20210116134424.82867-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.72] X-ClientProxiedBy: AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9d1f2810-249d-4ebd-b95d-08d8ba24eebd X-MS-TrafficTypeDiagnostic: AM5PR0801MB2098: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5mKvmyzTbuHPYBBwwYHHLJSuQTcCCor4BbQLYUgHe3BHZS9JcBSND/P/IyY9UqVGUpw7EbdE96N1xQpa4B17XC/xOejiZAEAIvBImgJLPPE0NtecDjzgdBrMzAxhdyDV1RQ9slub6iaYCIPzAGZ4beXcgmBwhU8yljYlBrqzT41YBKL7rSpP0jem4VxLhaLHyIztwhYCQPbO3ppCRcRW7sE3werWT4EO+ndOuiECHj4iQNHL9Rl0s5G/udf/o/mzqneyU3JN3blr2YCGlUg4fP1/n6asufblTwNc5SFkqs88p04odrMjFCO+h6yVoSr8YbFX7mK8tuXtNVgB6PBuH9YV+4HjavXaQRmOTRaI6tNJ8tugNCQ7e7gstv/WlUYH191ESi45zH2fQfpS/T4pUsCCQFg0NLfC08kgkfDUrR/JJqFa11l4Vxa8rDTkBKYCNb6RvwXXjAEIxq+3ekEyCbRzisWnyjc0biU9P24RvVoA+GYyCLEXhao+5lzQ8MmnqqHa7FVK5IKlA7pAkxm1uQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(366004)(376002)(346002)(39830400003)(6916009)(36756003)(83380400001)(66946007)(6666004)(6512007)(86362001)(30864003)(1076003)(66556008)(5660300002)(6486002)(66476007)(6506007)(478600001)(4326008)(8676002)(8936002)(956004)(2906002)(52116002)(186003)(16526019)(316002)(26005)(2616005)(579004)(559001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?Vb/GM5XhW1yFC1PlJDK1HPBzJ3MZL1J/W/V3m6retVZgbSzY8io9L+glCBI6?= =?us-ascii?Q?aI3P1bvqN1Q/FNyAwWEzhIpOsvJcg8Vp5Kk/Ee716OPf5kKbr3CYDxKPrDuC?= =?us-ascii?Q?EwUduVSoqvdlYj5L64PlFTg4SnZ3EV+eN5HuVu8wZcgnNJN/xFesHmc/NSzb?= =?us-ascii?Q?HBN19+HLNWy0KkeoHmfUP8fHcjeYPVyFMi6sRFPN8LwB0zcqd6Z3YTiv3Z3Y?= =?us-ascii?Q?ZPJav0dmsJc6htl6SJUJ3eYGIps/t0uVqoUw1fOJ7vVY3u0fi1uZCbVp2SWt?= =?us-ascii?Q?7hx4JZCgEv6m1GVxXTrdjPIML6vVWlOei1C/mjR0pNRiqUIRZJbqOPQFZFpQ?= =?us-ascii?Q?lie3+XlKp034sy27bn6OGmo3rNNLzc0vZczn/N+LvmvSktQ8OBOQl1M0MS3b?= =?us-ascii?Q?yTbbMZ1rK2pWWyesKn0BZvkDmjy214xFr54dbirwKrx/RjRP6S7M8JFqmmMC?= =?us-ascii?Q?VnHBT+ERpJ86iJaHQEotLrLFw2cSmnkHkZEHXfxAdNGfGA/4UPcm6fl9WxnD?= =?us-ascii?Q?UaV8ztgsIGHsWzwdr6Fzq96dIsqPuqO2p8UFLtrpqp/9Hack5zkzUmTWN/I8?= =?us-ascii?Q?uGuJmUkYFWS8uDmE9yjXi/QCNKqKc1li27b2mvF/roj4ojEOs5GHz4e6LmPz?= =?us-ascii?Q?IqRMXA8ku0J42dDhoJdTkubiENabqbekIyNNv13a+ZOXMqqziB17Jrt1X11k?= =?us-ascii?Q?wcwwwu7h36Amw8phwJH7YnqqTL3pBsRDJWCeciMBWoBG5CzEklAWKGjFQgmg?= =?us-ascii?Q?6LNIrWLwlV8WOTojlfVvo5llNkLdRpad/0wndRmtDhcRWn37g1yWWrRk491C?= =?us-ascii?Q?QGrrNYPNJfpgaUsfESUstCsPJBsvlHedEUyaZGZwHWryAW7VyWWj3wEBtxfS?= =?us-ascii?Q?DWEGR5TLrJCpwmV6do+okflYmHnW3EDaOqSnGx77j5xd3cMxQTErNpIZpufW?= =?us-ascii?Q?Wh6k7AGJ8nlQKVVioEdveGbO5o86zOwtJzJR3LWT6BMDtr8sjQHniO4helxU?= =?us-ascii?Q?YIDH?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9d1f2810-249d-4ebd-b95d-08d8ba24eebd X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2021 13:45:06.3629 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: i5yxwoCnc9GchLKk/Km32t4SYTI/ZRX+AcbiF3gXn7NbVTWF04bki49YB1wQgfweFQ2/GYWeyTh/I7eDwtAtqCTf3VOoAY/y5AXBTqUkc6Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2098 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.6.109; envelope-from=vsementsov@virtuozzo.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" We are going to drop group file. Define group in tests as a preparatory step. The patch is generated by cd tests/qemu-iotests grep '^[0-9]\{3\} ' group | while read line; do file=3D$(awk '{print $1}' <<< "$line"); groups=3D$(sed -e 's/^... //' <<< "$line"); awk "NR=3D=3D2{print \"# group: $groups\"}1" $file > tmp; cat tmp > $file; done Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake --- tests/qemu-iotests/001 | 1 + tests/qemu-iotests/002 | 1 + tests/qemu-iotests/003 | 1 + tests/qemu-iotests/004 | 1 + tests/qemu-iotests/005 | 1 + tests/qemu-iotests/007 | 1 + tests/qemu-iotests/008 | 1 + tests/qemu-iotests/009 | 1 + tests/qemu-iotests/010 | 1 + tests/qemu-iotests/011 | 1 + tests/qemu-iotests/012 | 1 + tests/qemu-iotests/013 | 1 + tests/qemu-iotests/014 | 1 + tests/qemu-iotests/015 | 1 + tests/qemu-iotests/017 | 1 + tests/qemu-iotests/018 | 1 + tests/qemu-iotests/019 | 1 + tests/qemu-iotests/020 | 1 + tests/qemu-iotests/021 | 1 + tests/qemu-iotests/022 | 1 + tests/qemu-iotests/023 | 1 + tests/qemu-iotests/024 | 1 + tests/qemu-iotests/025 | 1 + tests/qemu-iotests/026 | 1 + tests/qemu-iotests/027 | 1 + tests/qemu-iotests/028 | 1 + tests/qemu-iotests/029 | 1 + tests/qemu-iotests/030 | 1 + tests/qemu-iotests/031 | 1 + tests/qemu-iotests/032 | 1 + tests/qemu-iotests/033 | 1 + tests/qemu-iotests/034 | 1 + tests/qemu-iotests/035 | 1 + tests/qemu-iotests/036 | 1 + tests/qemu-iotests/037 | 1 + tests/qemu-iotests/038 | 1 + tests/qemu-iotests/039 | 1 + tests/qemu-iotests/040 | 1 + tests/qemu-iotests/041 | 1 + tests/qemu-iotests/042 | 1 + tests/qemu-iotests/043 | 1 + tests/qemu-iotests/044 | 1 + tests/qemu-iotests/045 | 1 + tests/qemu-iotests/046 | 1 + tests/qemu-iotests/047 | 1 + tests/qemu-iotests/048 | 1 + tests/qemu-iotests/049 | 1 + tests/qemu-iotests/050 | 1 + tests/qemu-iotests/051 | 1 + tests/qemu-iotests/052 | 1 + tests/qemu-iotests/053 | 1 + tests/qemu-iotests/054 | 1 + tests/qemu-iotests/055 | 1 + tests/qemu-iotests/056 | 1 + tests/qemu-iotests/057 | 1 + tests/qemu-iotests/058 | 1 + tests/qemu-iotests/059 | 1 + tests/qemu-iotests/060 | 1 + tests/qemu-iotests/061 | 1 + tests/qemu-iotests/062 | 1 + tests/qemu-iotests/063 | 1 + tests/qemu-iotests/064 | 1 + tests/qemu-iotests/065 | 1 + tests/qemu-iotests/066 | 1 + tests/qemu-iotests/068 | 1 + tests/qemu-iotests/069 | 1 + tests/qemu-iotests/070 | 1 + tests/qemu-iotests/071 | 1 + tests/qemu-iotests/072 | 1 + tests/qemu-iotests/073 | 1 + tests/qemu-iotests/074 | 1 + tests/qemu-iotests/075 | 1 + tests/qemu-iotests/076 | 1 + tests/qemu-iotests/077 | 1 + tests/qemu-iotests/078 | 1 + tests/qemu-iotests/079 | 1 + tests/qemu-iotests/080 | 1 + tests/qemu-iotests/081 | 1 + tests/qemu-iotests/082 | 1 + tests/qemu-iotests/083 | 1 + tests/qemu-iotests/084 | 1 + tests/qemu-iotests/085 | 1 + tests/qemu-iotests/086 | 1 + tests/qemu-iotests/087 | 1 + tests/qemu-iotests/088 | 1 + tests/qemu-iotests/089 | 1 + tests/qemu-iotests/090 | 1 + tests/qemu-iotests/091 | 1 + tests/qemu-iotests/092 | 1 + tests/qemu-iotests/093 | 1 + tests/qemu-iotests/094 | 1 + tests/qemu-iotests/095 | 1 + tests/qemu-iotests/096 | 1 + tests/qemu-iotests/097 | 1 + tests/qemu-iotests/098 | 1 + tests/qemu-iotests/099 | 1 + tests/qemu-iotests/101 | 1 + tests/qemu-iotests/102 | 1 + tests/qemu-iotests/103 | 1 + tests/qemu-iotests/104 | 1 + tests/qemu-iotests/105 | 1 + tests/qemu-iotests/106 | 1 + tests/qemu-iotests/107 | 1 + tests/qemu-iotests/108 | 1 + tests/qemu-iotests/109 | 1 + tests/qemu-iotests/110 | 1 + tests/qemu-iotests/111 | 1 + tests/qemu-iotests/112 | 1 + tests/qemu-iotests/113 | 1 + tests/qemu-iotests/114 | 1 + tests/qemu-iotests/115 | 1 + tests/qemu-iotests/116 | 1 + tests/qemu-iotests/117 | 1 + tests/qemu-iotests/118 | 1 + tests/qemu-iotests/119 | 1 + tests/qemu-iotests/120 | 1 + tests/qemu-iotests/121 | 1 + tests/qemu-iotests/122 | 1 + tests/qemu-iotests/123 | 1 + tests/qemu-iotests/124 | 1 + tests/qemu-iotests/125 | 1 + tests/qemu-iotests/126 | 1 + tests/qemu-iotests/127 | 1 + tests/qemu-iotests/128 | 1 + tests/qemu-iotests/129 | 1 + tests/qemu-iotests/130 | 1 + tests/qemu-iotests/131 | 1 + tests/qemu-iotests/132 | 1 + tests/qemu-iotests/133 | 1 + tests/qemu-iotests/134 | 1 + tests/qemu-iotests/135 | 1 + tests/qemu-iotests/136 | 1 + tests/qemu-iotests/137 | 1 + tests/qemu-iotests/138 | 1 + tests/qemu-iotests/139 | 1 + tests/qemu-iotests/140 | 1 + tests/qemu-iotests/141 | 1 + tests/qemu-iotests/143 | 1 + tests/qemu-iotests/144 | 1 + tests/qemu-iotests/145 | 1 + tests/qemu-iotests/146 | 1 + tests/qemu-iotests/147 | 1 + tests/qemu-iotests/148 | 1 + tests/qemu-iotests/149 | 1 + tests/qemu-iotests/150 | 1 + tests/qemu-iotests/151 | 1 + tests/qemu-iotests/152 | 1 + tests/qemu-iotests/153 | 1 + tests/qemu-iotests/154 | 1 + tests/qemu-iotests/155 | 1 + tests/qemu-iotests/156 | 1 + tests/qemu-iotests/157 | 1 + tests/qemu-iotests/158 | 1 + tests/qemu-iotests/159 | 1 + tests/qemu-iotests/160 | 1 + tests/qemu-iotests/161 | 1 + tests/qemu-iotests/162 | 1 + tests/qemu-iotests/163 | 1 + tests/qemu-iotests/165 | 1 + tests/qemu-iotests/169 | 1 + tests/qemu-iotests/170 | 1 + tests/qemu-iotests/171 | 1 + tests/qemu-iotests/172 | 1 + tests/qemu-iotests/173 | 1 + tests/qemu-iotests/174 | 1 + tests/qemu-iotests/175 | 1 + tests/qemu-iotests/176 | 1 + tests/qemu-iotests/177 | 1 + tests/qemu-iotests/178 | 1 + tests/qemu-iotests/179 | 1 + tests/qemu-iotests/181 | 1 + tests/qemu-iotests/182 | 1 + tests/qemu-iotests/183 | 1 + tests/qemu-iotests/184 | 1 + tests/qemu-iotests/185 | 1 + tests/qemu-iotests/186 | 1 + tests/qemu-iotests/187 | 1 + tests/qemu-iotests/188 | 1 + tests/qemu-iotests/189 | 1 + tests/qemu-iotests/190 | 1 + tests/qemu-iotests/191 | 1 + tests/qemu-iotests/192 | 1 + tests/qemu-iotests/194 | 1 + tests/qemu-iotests/195 | 1 + tests/qemu-iotests/196 | 1 + tests/qemu-iotests/197 | 1 + tests/qemu-iotests/198 | 1 + tests/qemu-iotests/199 | 1 + tests/qemu-iotests/200 | 1 + tests/qemu-iotests/201 | 1 + tests/qemu-iotests/202 | 1 + tests/qemu-iotests/203 | 1 + tests/qemu-iotests/204 | 1 + tests/qemu-iotests/205 | 1 + tests/qemu-iotests/206 | 1 + tests/qemu-iotests/207 | 1 + tests/qemu-iotests/208 | 1 + tests/qemu-iotests/209 | 1 + tests/qemu-iotests/210 | 1 + tests/qemu-iotests/211 | 1 + tests/qemu-iotests/212 | 1 + tests/qemu-iotests/213 | 1 + tests/qemu-iotests/214 | 1 + tests/qemu-iotests/215 | 1 + tests/qemu-iotests/216 | 1 + tests/qemu-iotests/217 | 1 + tests/qemu-iotests/218 | 1 + tests/qemu-iotests/219 | 1 + tests/qemu-iotests/220 | 1 + tests/qemu-iotests/221 | 1 + tests/qemu-iotests/222 | 1 + tests/qemu-iotests/223 | 1 + tests/qemu-iotests/224 | 1 + tests/qemu-iotests/225 | 1 + tests/qemu-iotests/226 | 1 + tests/qemu-iotests/227 | 1 + tests/qemu-iotests/228 | 1 + tests/qemu-iotests/229 | 1 + tests/qemu-iotests/231 | 1 + tests/qemu-iotests/232 | 1 + tests/qemu-iotests/233 | 1 + tests/qemu-iotests/234 | 1 + tests/qemu-iotests/235 | 1 + tests/qemu-iotests/236 | 1 + tests/qemu-iotests/237 | 1 + tests/qemu-iotests/238 | 1 + tests/qemu-iotests/239 | 1 + tests/qemu-iotests/240 | 1 + tests/qemu-iotests/241 | 1 + tests/qemu-iotests/242 | 1 + tests/qemu-iotests/243 | 1 + tests/qemu-iotests/244 | 1 + tests/qemu-iotests/245 | 1 + tests/qemu-iotests/246 | 1 + tests/qemu-iotests/247 | 1 + tests/qemu-iotests/248 | 1 + tests/qemu-iotests/249 | 1 + tests/qemu-iotests/250 | 1 + tests/qemu-iotests/251 | 1 + tests/qemu-iotests/252 | 1 + tests/qemu-iotests/253 | 1 + tests/qemu-iotests/254 | 1 + tests/qemu-iotests/255 | 1 + tests/qemu-iotests/256 | 1 + tests/qemu-iotests/257 | 1 + tests/qemu-iotests/258 | 1 + tests/qemu-iotests/259 | 1 + tests/qemu-iotests/260 | 1 + tests/qemu-iotests/261 | 1 + tests/qemu-iotests/262 | 1 + tests/qemu-iotests/263 | 1 + tests/qemu-iotests/264 | 1 + tests/qemu-iotests/265 | 1 + tests/qemu-iotests/266 | 1 + tests/qemu-iotests/267 | 1 + tests/qemu-iotests/268 | 1 + tests/qemu-iotests/270 | 1 + tests/qemu-iotests/271 | 1 + tests/qemu-iotests/272 | 1 + tests/qemu-iotests/273 | 1 + tests/qemu-iotests/274 | 1 + tests/qemu-iotests/277 | 1 + tests/qemu-iotests/279 | 1 + tests/qemu-iotests/280 | 1 + tests/qemu-iotests/281 | 1 + tests/qemu-iotests/282 | 1 + tests/qemu-iotests/283 | 1 + tests/qemu-iotests/284 | 1 + tests/qemu-iotests/286 | 1 + tests/qemu-iotests/287 | 1 + tests/qemu-iotests/288 | 1 + tests/qemu-iotests/289 | 1 + tests/qemu-iotests/290 | 1 + tests/qemu-iotests/291 | 1 + tests/qemu-iotests/292 | 1 + tests/qemu-iotests/293 | 1 + tests/qemu-iotests/294 | 1 + tests/qemu-iotests/295 | 1 + tests/qemu-iotests/296 | 1 + tests/qemu-iotests/297 | 1 + tests/qemu-iotests/299 | 1 + tests/qemu-iotests/300 | 1 + tests/qemu-iotests/301 | 1 + tests/qemu-iotests/302 | 1 + tests/qemu-iotests/303 | 1 + tests/qemu-iotests/304 | 1 + tests/qemu-iotests/305 | 1 + tests/qemu-iotests/307 | 1 + tests/qemu-iotests/308 | 1 + tests/qemu-iotests/309 | 1 + tests/qemu-iotests/312 | 1 + 291 files changed, 291 insertions(+) diff --git a/tests/qemu-iotests/001 b/tests/qemu-iotests/001 index 696726e45f..6f980fd34d 100755 --- a/tests/qemu-iotests/001 +++ b/tests/qemu-iotests/001 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test simple read/write using plain bdrv_pread/bdrv_pwrite # diff --git a/tests/qemu-iotests/002 b/tests/qemu-iotests/002 index 1a0d411df5..5ce1647531 100755 --- a/tests/qemu-iotests/002 +++ b/tests/qemu-iotests/002 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test simple read/write using plain bdrv_pread/bdrv_pwrite # diff --git a/tests/qemu-iotests/003 b/tests/qemu-iotests/003 index 33eeade0de..03f902a83c 100755 --- a/tests/qemu-iotests/003 +++ b/tests/qemu-iotests/003 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # Test simple read/write using bdrv_aio_readv/bdrv_aio_writev # diff --git a/tests/qemu-iotests/004 b/tests/qemu-iotests/004 index d308dc4b49..e955579a67 100755 --- a/tests/qemu-iotests/004 +++ b/tests/qemu-iotests/004 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Make sure we can't read and write outside of the image size. # diff --git a/tests/qemu-iotests/005 b/tests/qemu-iotests/005 index b6d03ac37d..40e64a9a8f 100755 --- a/tests/qemu-iotests/005 +++ b/tests/qemu-iotests/005 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: img auto quick # # Make sure qemu-img can create 5TB images # diff --git a/tests/qemu-iotests/007 b/tests/qemu-iotests/007 index 160683adf8..936d3f14fb 100755 --- a/tests/qemu-iotests/007 +++ b/tests/qemu-iotests/007 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: snapshot auto # # Check for one possible case of qcow2 refcount corruption. # diff --git a/tests/qemu-iotests/008 b/tests/qemu-iotests/008 index 2b81b119bf..fa4990b513 100755 --- a/tests/qemu-iotests/008 +++ b/tests/qemu-iotests/008 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test simple asynchronous read/write operations. # diff --git a/tests/qemu-iotests/009 b/tests/qemu-iotests/009 index 4dc7d210f9..efa852bad3 100755 --- a/tests/qemu-iotests/009 +++ b/tests/qemu-iotests/009 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Nolan I qcow2 corruption - incorrectly reports free clusters # diff --git a/tests/qemu-iotests/010 b/tests/qemu-iotests/010 index df809b3088..4ae9027b47 100755 --- a/tests/qemu-iotests/010 +++ b/tests/qemu-iotests/010 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Nolan II qcow2 corruption - wrong used cluster # diff --git a/tests/qemu-iotests/011 b/tests/qemu-iotests/011 index 57b99ae4a9..5c99ac987f 100755 --- a/tests/qemu-iotests/011 +++ b/tests/qemu-iotests/011 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test for AIO allocation on the same cluster # diff --git a/tests/qemu-iotests/012 b/tests/qemu-iotests/012 index 12957285b3..3a24d2ca8d 100755 --- a/tests/qemu-iotests/012 +++ b/tests/qemu-iotests/012 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: auto quick # # Make sure we can open read-only images # diff --git a/tests/qemu-iotests/013 b/tests/qemu-iotests/013 index 5cb9032f16..d39d0cd88b 100755 --- a/tests/qemu-iotests/013 +++ b/tests/qemu-iotests/013 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # qcow2 pattern test, empty and compressed image - 4k cluster patterns # diff --git a/tests/qemu-iotests/014 b/tests/qemu-iotests/014 index e1221c0fff..2d23469332 100755 --- a/tests/qemu-iotests/014 +++ b/tests/qemu-iotests/014 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # qcow2 pattern test, complex patterns including compression and snapshots # Using patterns for 4k cluster size. diff --git a/tests/qemu-iotests/015 b/tests/qemu-iotests/015 index 4d8effd0ae..40c23235a6 100755 --- a/tests/qemu-iotests/015 +++ b/tests/qemu-iotests/015 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw snapshot # # Combined test to grow the refcount table and test snapshots. # diff --git a/tests/qemu-iotests/017 b/tests/qemu-iotests/017 index 3413e34f27..2024b85e79 100755 --- a/tests/qemu-iotests/017 +++ b/tests/qemu-iotests/017 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw backing auto quick # # Simple backing file reads # diff --git a/tests/qemu-iotests/018 b/tests/qemu-iotests/018 index 191b461a4d..6fcebbb40e 100755 --- a/tests/qemu-iotests/018 +++ b/tests/qemu-iotests/018 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw backing auto quick # # Merge backing file into test image when converting the image # diff --git a/tests/qemu-iotests/019 b/tests/qemu-iotests/019 index d3c11256dc..fa4458fd27 100755 --- a/tests/qemu-iotests/019 +++ b/tests/qemu-iotests/019 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw backing auto quick # # When using a backing file for the output image in qemu-img convert, # the backing file clusters must not copied. The data must still be diff --git a/tests/qemu-iotests/020 b/tests/qemu-iotests/020 index 596505be2d..60c672e17b 100755 --- a/tests/qemu-iotests/020 +++ b/tests/qemu-iotests/020 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw backing auto quick # # Commit changes to backing file # diff --git a/tests/qemu-iotests/021 b/tests/qemu-iotests/021 index f888269fd4..0fc89df2fe 100755 --- a/tests/qemu-iotests/021 +++ b/tests/qemu-iotests/021 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: io auto quick # # Test handling of invalid patterns arguments to qemu-io # diff --git a/tests/qemu-iotests/022 b/tests/qemu-iotests/022 index 99eb08f57f..a116cfe255 100755 --- a/tests/qemu-iotests/022 +++ b/tests/qemu-iotests/022 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw snapshot auto # # Test bdrv_load/save_vmstate using the usual patterns # diff --git a/tests/qemu-iotests/023 b/tests/qemu-iotests/023 index 02ed047820..d19d13ff5d 100755 --- a/tests/qemu-iotests/023 +++ b/tests/qemu-iotests/023 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # qcow2 pattern test with various cluster sizes # diff --git a/tests/qemu-iotests/024 b/tests/qemu-iotests/024 index 12aceb2d41..25a564a150 100755 --- a/tests/qemu-iotests/024 +++ b/tests/qemu-iotests/024 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw backing auto quick # # Rebasing COW images # diff --git a/tests/qemu-iotests/025 b/tests/qemu-iotests/025 index 1569d912f4..da77ed3154 100755 --- a/tests/qemu-iotests/025 +++ b/tests/qemu-iotests/025 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Resizing images # diff --git a/tests/qemu-iotests/026 b/tests/qemu-iotests/026 index 9ecc5880b1..d37e266dad 100755 --- a/tests/qemu-iotests/026 +++ b/tests/qemu-iotests/026 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw blkdbg # # qcow2 error path testing # diff --git a/tests/qemu-iotests/027 b/tests/qemu-iotests/027 index 494be0921f..b279c88f33 100755 --- a/tests/qemu-iotests/027 +++ b/tests/qemu-iotests/027 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test that sub-cluster allocating writes zero the rest of the cluster # diff --git a/tests/qemu-iotests/028 b/tests/qemu-iotests/028 index 57d34aae99..8c391f2adc 100755 --- a/tests/qemu-iotests/028 +++ b/tests/qemu-iotests/028 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw backing quick # # Test that backing files can be smaller than the image # diff --git a/tests/qemu-iotests/029 b/tests/qemu-iotests/029 index 61d78c00a4..bd71dd2f22 100755 --- a/tests/qemu-iotests/029 +++ b/tests/qemu-iotests/029 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # qcow2 internal snapshots/VM state tests # diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030 index dcb4b5d6a6..890784b116 100755 --- a/tests/qemu-iotests/030 +++ b/tests/qemu-iotests/030 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw auto backing # # Tests for image streaming. # diff --git a/tests/qemu-iotests/031 b/tests/qemu-iotests/031 index 2bcbc5886e..58b57a0ef2 100755 --- a/tests/qemu-iotests/031 +++ b/tests/qemu-iotests/031 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test that all qcow2 header extensions survive a header rewrite # diff --git a/tests/qemu-iotests/032 b/tests/qemu-iotests/032 index 8337a4d825..ebbe7cb0ba 100755 --- a/tests/qemu-iotests/032 +++ b/tests/qemu-iotests/032 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test that AIO requests are drained before an image is closed. This used # to segfault because the request coroutine kept running even after the diff --git a/tests/qemu-iotests/033 b/tests/qemu-iotests/033 index 8b40991d55..da9133c44b 100755 --- a/tests/qemu-iotests/033 +++ b/tests/qemu-iotests/033 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test aligned and misaligned write zeroes operations. # diff --git a/tests/qemu-iotests/034 b/tests/qemu-iotests/034 index 08f7aea6d5..ac1af8f646 100755 --- a/tests/qemu-iotests/034 +++ b/tests/qemu-iotests/034 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing quick # # Test bdrv_pwrite_zeroes with backing files (see also 154) # diff --git a/tests/qemu-iotests/035 b/tests/qemu-iotests/035 index d950a0dd1e..0c0c4fdd42 100755 --- a/tests/qemu-iotests/035 +++ b/tests/qemu-iotests/035 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Let a few AIO requests run in parallel and have them access different L2 # tables so that the cache has a chance to get used up. diff --git a/tests/qemu-iotests/036 b/tests/qemu-iotests/036 index 6b82638080..5e567012a8 100755 --- a/tests/qemu-iotests/036 +++ b/tests/qemu-iotests/036 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test qcow2 feature bits # diff --git a/tests/qemu-iotests/037 b/tests/qemu-iotests/037 index bb893c43dc..85b1015056 100755 --- a/tests/qemu-iotests/037 +++ b/tests/qemu-iotests/037 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing quick # # Test COW from backing files # diff --git a/tests/qemu-iotests/038 b/tests/qemu-iotests/038 index 30f1f73c25..65bf7a753e 100755 --- a/tests/qemu-iotests/038 +++ b/tests/qemu-iotests/038 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing quick # # Test COW from backing files with AIO # diff --git a/tests/qemu-iotests/039 b/tests/qemu-iotests/039 index ad3867c3fc..12b2c7fa7b 100755 --- a/tests/qemu-iotests/039 +++ b/tests/qemu-iotests/039 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test qcow2 lazy refcounts # diff --git a/tests/qemu-iotests/040 b/tests/qemu-iotests/040 index dc6069edc0..7ebc9ed825 100755 --- a/tests/qemu-iotests/040 +++ b/tests/qemu-iotests/040 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw auto # # Tests for image block commit. # diff --git a/tests/qemu-iotests/041 b/tests/qemu-iotests/041 index a7780853cd..5cc02b24fc 100755 --- a/tests/qemu-iotests/041 +++ b/tests/qemu-iotests/041 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw auto backing # # Tests for image mirroring. # diff --git a/tests/qemu-iotests/042 b/tests/qemu-iotests/042 index e8f23a174c..411e54ae04 100755 --- a/tests/qemu-iotests/042 +++ b/tests/qemu-iotests/042 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test qemu-img operation on zero size images # diff --git a/tests/qemu-iotests/043 b/tests/qemu-iotests/043 index 3271737f69..f8ce3288db 100755 --- a/tests/qemu-iotests/043 +++ b/tests/qemu-iotests/043 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing # # Test that qemu-img info --backing-chain detects infinite loops # diff --git a/tests/qemu-iotests/044 b/tests/qemu-iotests/044 index 7e99ea7c68..64b18eb7c8 100755 --- a/tests/qemu-iotests/044 +++ b/tests/qemu-iotests/044 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Tests growing a large refcount table. # diff --git a/tests/qemu-iotests/045 b/tests/qemu-iotests/045 index 5acc89099c..45eb239baa 100755 --- a/tests/qemu-iotests/045 +++ b/tests/qemu-iotests/045 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Tests for fdsets and getfd. # diff --git a/tests/qemu-iotests/046 b/tests/qemu-iotests/046 index ed6fae3529..50b0678f60 100755 --- a/tests/qemu-iotests/046 +++ b/tests/qemu-iotests/046 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto aio quick # # Test concurrent cluster allocations # diff --git a/tests/qemu-iotests/047 b/tests/qemu-iotests/047 index 4528465fb0..8dd21e0a81 100755 --- a/tests/qemu-iotests/047 +++ b/tests/qemu-iotests/047 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Regression test for commit b7ab0fea (which was a corruption fix, # despite the commit message claiming otherwise) diff --git a/tests/qemu-iotests/048 b/tests/qemu-iotests/048 index 2af6b74b41..bf8e4bf528 100755 --- a/tests/qemu-iotests/048 +++ b/tests/qemu-iotests/048 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: img auto quick ## ## qemu-img compare test ## diff --git a/tests/qemu-iotests/049 b/tests/qemu-iotests/049 index 82b1e6c202..ed12fa49d7 100755 --- a/tests/qemu-iotests/049 +++ b/tests/qemu-iotests/049 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # Check qemu-img option parsing # diff --git a/tests/qemu-iotests/050 b/tests/qemu-iotests/050 index 741bdb610e..1de01c312e 100755 --- a/tests/qemu-iotests/050 +++ b/tests/qemu-iotests/050 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing quick # # Test qemu-img rebase with zero clusters # diff --git a/tests/qemu-iotests/051 b/tests/qemu-iotests/051 index bee26075b2..7cbd1415ce 100755 --- a/tests/qemu-iotests/051 +++ b/tests/qemu-iotests/051 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test command line configuration of block devices and driver-specific opt= ions # diff --git a/tests/qemu-iotests/052 b/tests/qemu-iotests/052 index 8d5c10601f..2f23ac9b65 100755 --- a/tests/qemu-iotests/052 +++ b/tests/qemu-iotests/052 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing quick # # Test bdrv_pread/bdrv_pwrite using BDRV_O_SNAPSHOT # diff --git a/tests/qemu-iotests/053 b/tests/qemu-iotests/053 index 71d299c4f9..9a2958d42d 100755 --- a/tests/qemu-iotests/053 +++ b/tests/qemu-iotests/053 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test qemu-img convert when image length is not a multiple of cluster size # diff --git a/tests/qemu-iotests/054 b/tests/qemu-iotests/054 index 40922db2b1..ea147012c3 100755 --- a/tests/qemu-iotests/054 +++ b/tests/qemu-iotests/054 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test huge qcow2 images # diff --git a/tests/qemu-iotests/055 b/tests/qemu-iotests/055 index 4d3744b0d3..5d6b607051 100755 --- a/tests/qemu-iotests/055 +++ b/tests/qemu-iotests/055 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Tests for drive-backup and blockdev-backup # diff --git a/tests/qemu-iotests/056 b/tests/qemu-iotests/056 index 052456aa00..0e6b8591e7 100755 --- a/tests/qemu-iotests/056 +++ b/tests/qemu-iotests/056 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw backing # # Tests for drive-backup # diff --git a/tests/qemu-iotests/057 b/tests/qemu-iotests/057 index a8b4bb60e0..b0d431999e 100755 --- a/tests/qemu-iotests/057 +++ b/tests/qemu-iotests/057 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Tests for internal snapshot. # diff --git a/tests/qemu-iotests/058 b/tests/qemu-iotests/058 index d84740ed9f..ce35ff4ee0 100755 --- a/tests/qemu-iotests/058 +++ b/tests/qemu-iotests/058 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test export internal snapshot by qemu-nbd, convert it by qemu-img. # diff --git a/tests/qemu-iotests/059 b/tests/qemu-iotests/059 index dcc442be9f..65c0c32b26 100755 --- a/tests/qemu-iotests/059 +++ b/tests/qemu-iotests/059 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test case for vmdk # diff --git a/tests/qemu-iotests/060 b/tests/qemu-iotests/060 index 4b81d1aa51..db26c6b246 100755 --- a/tests/qemu-iotests/060 +++ b/tests/qemu-iotests/060 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for image corruption (overlapping data structures) in qcow2 # diff --git a/tests/qemu-iotests/061 b/tests/qemu-iotests/061 index 5747beb7ed..e26d94a0df 100755 --- a/tests/qemu-iotests/061 +++ b/tests/qemu-iotests/061 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # Test case for image option amendment in qcow2. # diff --git a/tests/qemu-iotests/062 b/tests/qemu-iotests/062 index f26b88df9d..321252298d 100755 --- a/tests/qemu-iotests/062 +++ b/tests/qemu-iotests/062 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for snapshotting images with unallocated zero clusters in # qcow2 diff --git a/tests/qemu-iotests/063 b/tests/qemu-iotests/063 index c750b3806e..3a44758053 100755 --- a/tests/qemu-iotests/063 +++ b/tests/qemu-iotests/063 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # test of qemu-img convert -n - convert without creation # diff --git a/tests/qemu-iotests/064 b/tests/qemu-iotests/064 index 90673186ec..71fc575b21 100755 --- a/tests/qemu-iotests/064 +++ b/tests/qemu-iotests/064 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test VHDX read/write from a sample image created with Hyper-V # diff --git a/tests/qemu-iotests/065 b/tests/qemu-iotests/065 index 29a7f7ad60..3c2ca27627 100755 --- a/tests/qemu-iotests/065 +++ b/tests/qemu-iotests/065 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test for additional information emitted by qemu-img info on qcow2 # images diff --git a/tests/qemu-iotests/066 b/tests/qemu-iotests/066 index a4ac613f8e..a780ed7ab5 100755 --- a/tests/qemu-iotests/066 +++ b/tests/qemu-iotests/066 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for preallocated zero clusters in qcow2 # diff --git a/tests/qemu-iotests/068 b/tests/qemu-iotests/068 index ccd1a9f1db..03e03508a6 100755 --- a/tests/qemu-iotests/068 +++ b/tests/qemu-iotests/068 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test case for loading a saved VM state from a qcow2 image # diff --git a/tests/qemu-iotests/069 b/tests/qemu-iotests/069 index a4da83b2d9..222dcba741 100755 --- a/tests/qemu-iotests/069 +++ b/tests/qemu-iotests/069 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for deleting a backing file # diff --git a/tests/qemu-iotests/070 b/tests/qemu-iotests/070 index cb0f927c16..b181e00f9b 100755 --- a/tests/qemu-iotests/070 +++ b/tests/qemu-iotests/070 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test VHDX log replay from an image with a journal that needs to be # replayed diff --git a/tests/qemu-iotests/071 b/tests/qemu-iotests/071 index 49faae6684..d99cef5a42 100755 --- a/tests/qemu-iotests/071 +++ b/tests/qemu-iotests/071 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for the QMP blkdebug and blkverify interfaces # diff --git a/tests/qemu-iotests/072 b/tests/qemu-iotests/072 index f0b73e7e65..c492ab8a78 100755 --- a/tests/qemu-iotests/072 +++ b/tests/qemu-iotests/072 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for nested image formats # diff --git a/tests/qemu-iotests/073 b/tests/qemu-iotests/073 index 68517821e8..90afd420bd 100755 --- a/tests/qemu-iotests/073 +++ b/tests/qemu-iotests/073 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test count_contiguous_clusters in qcow2 # diff --git a/tests/qemu-iotests/074 b/tests/qemu-iotests/074 index db03edf0b0..c32c94b50d 100755 --- a/tests/qemu-iotests/074 +++ b/tests/qemu-iotests/074 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick ## ## qemu-img compare test (qcow2 only ones) ## diff --git a/tests/qemu-iotests/075 b/tests/qemu-iotests/075 index 389d5675fa..ca2ed2a05c 100755 --- a/tests/qemu-iotests/075 +++ b/tests/qemu-iotests/075 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # cloop format input validation tests # diff --git a/tests/qemu-iotests/076 b/tests/qemu-iotests/076 index 0d405ef3f2..1a8927d765 100755 --- a/tests/qemu-iotests/076 +++ b/tests/qemu-iotests/076 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: io # # parallels format input validation tests # diff --git a/tests/qemu-iotests/077 b/tests/qemu-iotests/077 index c284952082..fbb90d8036 100755 --- a/tests/qemu-iotests/077 +++ b/tests/qemu-iotests/077 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test concurrent pread/pwrite # diff --git a/tests/qemu-iotests/078 b/tests/qemu-iotests/078 index 54fc654d8e..0b48b7f137 100755 --- a/tests/qemu-iotests/078 +++ b/tests/qemu-iotests/078 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # bochs format input validation tests # diff --git a/tests/qemu-iotests/079 b/tests/qemu-iotests/079 index 0f0d94a2ac..793e1f9d08 100755 --- a/tests/qemu-iotests/079 +++ b/tests/qemu-iotests/079 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # Test qcow2 preallocation with different cluster_sizes # diff --git a/tests/qemu-iotests/080 b/tests/qemu-iotests/080 index bda8617c38..3306500683 100755 --- a/tests/qemu-iotests/080 +++ b/tests/qemu-iotests/080 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # qcow2 format input validation tests # diff --git a/tests/qemu-iotests/081 b/tests/qemu-iotests/081 index 4e19972931..1ac66f197e 100755 --- a/tests/qemu-iotests/081 +++ b/tests/qemu-iotests/081 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test Quorum block driver # diff --git a/tests/qemu-iotests/082 b/tests/qemu-iotests/082 index 2135581867..021b9bef06 100755 --- a/tests/qemu-iotests/082 +++ b/tests/qemu-iotests/082 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test qemu-img command line parsing # diff --git a/tests/qemu-iotests/083 b/tests/qemu-iotests/083 index 10fdfc8ebb..bc32b537b2 100755 --- a/tests/qemu-iotests/083 +++ b/tests/qemu-iotests/083 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test NBD client unexpected disconnect # diff --git a/tests/qemu-iotests/084 b/tests/qemu-iotests/084 index c29d7395e9..e51e91a7c8 100755 --- a/tests/qemu-iotests/084 +++ b/tests/qemu-iotests/084 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: img quick # # Test case for VDI header corruption; image too large, and too many block= s. # Also simple test for creating dynamic and static VDI images. diff --git a/tests/qemu-iotests/085 b/tests/qemu-iotests/085 index e99eb44581..d557522943 100755 --- a/tests/qemu-iotests/085 +++ b/tests/qemu-iotests/085 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Live snapshot tests # diff --git a/tests/qemu-iotests/086 b/tests/qemu-iotests/086 index fea1a7bd8a..c055e7bfe1 100755 --- a/tests/qemu-iotests/086 +++ b/tests/qemu-iotests/086 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test qemu-img progress output # diff --git a/tests/qemu-iotests/087 b/tests/qemu-iotests/087 index 678e748c58..edd43f1a28 100755 --- a/tests/qemu-iotests/087 +++ b/tests/qemu-iotests/087 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test unsupported blockdev-add cases # diff --git a/tests/qemu-iotests/088 b/tests/qemu-iotests/088 index ef1163346c..e3102fe888 100755 --- a/tests/qemu-iotests/088 +++ b/tests/qemu-iotests/088 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # vpc (VHD) format input validation tests # diff --git a/tests/qemu-iotests/089 b/tests/qemu-iotests/089 index f0929b64c0..48bdc42e42 100755 --- a/tests/qemu-iotests/089 +++ b/tests/qemu-iotests/089 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for support of JSON filenames # diff --git a/tests/qemu-iotests/090 b/tests/qemu-iotests/090 index 87e872ebf4..2044c09e9b 100755 --- a/tests/qemu-iotests/090 +++ b/tests/qemu-iotests/090 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test for discarding compressed clusters on qcow2 images # diff --git a/tests/qemu-iotests/091 b/tests/qemu-iotests/091 index 8dee168bf6..9d144b9439 100755 --- a/tests/qemu-iotests/091 +++ b/tests/qemu-iotests/091 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw migration quick # # Live migration test # diff --git a/tests/qemu-iotests/092 b/tests/qemu-iotests/092 index 40ec62b6f1..bfa116d191 100755 --- a/tests/qemu-iotests/092 +++ b/tests/qemu-iotests/092 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # qcow1 format input validation tests # diff --git a/tests/qemu-iotests/093 b/tests/qemu-iotests/093 index 32ded11430..7745cb04b6 100755 --- a/tests/qemu-iotests/093 +++ b/tests/qemu-iotests/093 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: throttle # # Tests for IO throttling # diff --git a/tests/qemu-iotests/094 b/tests/qemu-iotests/094 index 2d3e1004d3..a295fb20ef 100755 --- a/tests/qemu-iotests/094 +++ b/tests/qemu-iotests/094 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test case for drive-mirror to NBD # diff --git a/tests/qemu-iotests/095 b/tests/qemu-iotests/095 index 7604ae6966..20b5f9bf61 100755 --- a/tests/qemu-iotests/095 +++ b/tests/qemu-iotests/095 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test for commit of larger active layer # diff --git a/tests/qemu-iotests/096 b/tests/qemu-iotests/096 index 5915f92786..b5d7636bdc 100755 --- a/tests/qemu-iotests/096 +++ b/tests/qemu-iotests/096 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test that snapshots move the throttling configuration to the active # layer diff --git a/tests/qemu-iotests/097 b/tests/qemu-iotests/097 index 1837d4e8e0..30313f8867 100755 --- a/tests/qemu-iotests/097 +++ b/tests/qemu-iotests/097 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing # # Commit changes into backing chains and empty the top image if the # backing image is not explicitly specified diff --git a/tests/qemu-iotests/098 b/tests/qemu-iotests/098 index a35ce7205e..4c37eb0cf5 100755 --- a/tests/qemu-iotests/098 +++ b/tests/qemu-iotests/098 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing quick # # Test qcow2's bdrv_make_empty for images without internal snapshots # diff --git a/tests/qemu-iotests/099 b/tests/qemu-iotests/099 index 65e8e92572..2f1199ce04 100755 --- a/tests/qemu-iotests/099 +++ b/tests/qemu-iotests/099 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test valid filenames for blkdebug and blkverify representatively for # other protocols (such as NBD) when queried diff --git a/tests/qemu-iotests/101 b/tests/qemu-iotests/101 index a4c1b6366a..4c4a8cea11 100755 --- a/tests/qemu-iotests/101 +++ b/tests/qemu-iotests/101 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test short file I/O # diff --git a/tests/qemu-iotests/102 b/tests/qemu-iotests/102 index 9d747c7bbf..8b4c4c905f 100755 --- a/tests/qemu-iotests/102 +++ b/tests/qemu-iotests/102 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test case for qemu-io -c map and qemu-img map # diff --git a/tests/qemu-iotests/103 b/tests/qemu-iotests/103 index 220481db4c..726f8313ef 100755 --- a/tests/qemu-iotests/103 +++ b/tests/qemu-iotests/103 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for qcow2 metadata cache size specification # diff --git a/tests/qemu-iotests/104 b/tests/qemu-iotests/104 index c70f28a9a1..3ebb74cf6e 100755 --- a/tests/qemu-iotests/104 +++ b/tests/qemu-iotests/104 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # Test image creation with aligned and unaligned sizes # diff --git a/tests/qemu-iotests/105 b/tests/qemu-iotests/105 index 4d55a2d3ef..d804685110 100755 --- a/tests/qemu-iotests/105 +++ b/tests/qemu-iotests/105 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Create, read, write big image # diff --git a/tests/qemu-iotests/106 b/tests/qemu-iotests/106 index 20ad7bd5a2..333144502c 100755 --- a/tests/qemu-iotests/106 +++ b/tests/qemu-iotests/106 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test preallocated resize of raw images # diff --git a/tests/qemu-iotests/107 b/tests/qemu-iotests/107 index d24829ccf9..e68f1e07c7 100755 --- a/tests/qemu-iotests/107 +++ b/tests/qemu-iotests/107 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Tests updates of the qcow2 L1 table # diff --git a/tests/qemu-iotests/108 b/tests/qemu-iotests/108 index ba67748bdf..8eaef0b8bf 100755 --- a/tests/qemu-iotests/108 +++ b/tests/qemu-iotests/108 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for repairing qcow2 images which cannot be repaired using # the on-disk refcount structures diff --git a/tests/qemu-iotests/109 b/tests/qemu-iotests/109 index 3ffeaf3c55..e207a555f3 100755 --- a/tests/qemu-iotests/109 +++ b/tests/qemu-iotests/109 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test writing image headers of other formats into raw images # diff --git a/tests/qemu-iotests/110 b/tests/qemu-iotests/110 index f1813d0dfb..1fa36ccdb7 100755 --- a/tests/qemu-iotests/110 +++ b/tests/qemu-iotests/110 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing quick # # Test case for relative backing file names in complex BDS trees # diff --git a/tests/qemu-iotests/111 b/tests/qemu-iotests/111 index bd839a39f4..3ba25f6161 100755 --- a/tests/qemu-iotests/111 +++ b/tests/qemu-iotests/111 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for non-existing backing file when creating a qcow2 image # and not specifying the size diff --git a/tests/qemu-iotests/112 b/tests/qemu-iotests/112 index 6e413f5651..07ac74fb2c 100755 --- a/tests/qemu-iotests/112 +++ b/tests/qemu-iotests/112 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test cases for different refcount_bits values # diff --git a/tests/qemu-iotests/113 b/tests/qemu-iotests/113 index 71a65de2e7..ee59b9a4b8 100755 --- a/tests/qemu-iotests/113 +++ b/tests/qemu-iotests/113 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test case for accessing creation options on image formats and # protocols not supporting image creation diff --git a/tests/qemu-iotests/114 b/tests/qemu-iotests/114 index 80e5e5e591..43cb0bc6c3 100755 --- a/tests/qemu-iotests/114 +++ b/tests/qemu-iotests/114 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test invalid backing file format in qcow2 images # diff --git a/tests/qemu-iotests/115 b/tests/qemu-iotests/115 index 7f53987d1b..26dd37dd6d 100755 --- a/tests/qemu-iotests/115 +++ b/tests/qemu-iotests/115 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test case for non-self-referential qcow2 refcount blocks # diff --git a/tests/qemu-iotests/116 b/tests/qemu-iotests/116 index 941b07a1a9..4f40fcb3d2 100755 --- a/tests/qemu-iotests/116 +++ b/tests/qemu-iotests/116 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test error code paths for invalid QED images # diff --git a/tests/qemu-iotests/117 b/tests/qemu-iotests/117 index 9039555ac4..48ebc012b1 100755 --- a/tests/qemu-iotests/117 +++ b/tests/qemu-iotests/117 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # Test case for shared BDS between backend trees # diff --git a/tests/qemu-iotests/118 b/tests/qemu-iotests/118 index 2350929fd8..1a2e219057 100755 --- a/tests/qemu-iotests/118 +++ b/tests/qemu-iotests/118 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Test case for the QMP 'change' command and all other associated # commands diff --git a/tests/qemu-iotests/119 b/tests/qemu-iotests/119 index ea6770a484..5770b50045 100755 --- a/tests/qemu-iotests/119 +++ b/tests/qemu-iotests/119 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # NBD test case for overriding BDRV_O_PROTOCOL by explicitly specifying # a driver diff --git a/tests/qemu-iotests/120 b/tests/qemu-iotests/120 index 45c55c1c01..7187731253 100755 --- a/tests/qemu-iotests/120 +++ b/tests/qemu-iotests/120 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Non-NBD test cases for overriding BDRV_O_PROTOCOL by explicitly # specifying a driver diff --git a/tests/qemu-iotests/121 b/tests/qemu-iotests/121 index 8357ce089a..ba3d8d9377 100755 --- a/tests/qemu-iotests/121 +++ b/tests/qemu-iotests/121 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test cases for qcow2 refcount table growth # diff --git a/tests/qemu-iotests/122 b/tests/qemu-iotests/122 index 0f3d4ca851..5d550ed13e 100755 --- a/tests/qemu-iotests/122 +++ b/tests/qemu-iotests/122 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test some qemu-img convert cases # diff --git a/tests/qemu-iotests/123 b/tests/qemu-iotests/123 index 01b771c76e..e19111f70d 100755 --- a/tests/qemu-iotests/123 +++ b/tests/qemu-iotests/123 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test case for qemu-img convert to NBD # diff --git a/tests/qemu-iotests/124 b/tests/qemu-iotests/124 index 3705cbb6b3..3b21bc497f 100755 --- a/tests/qemu-iotests/124 +++ b/tests/qemu-iotests/124 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw backing # # Tests for incremental drive-backup # diff --git a/tests/qemu-iotests/125 b/tests/qemu-iotests/125 index 5720e86dce..bd390b3a99 100755 --- a/tests/qemu-iotests/125 +++ b/tests/qemu-iotests/125 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test preallocated growth of qcow2 images # diff --git a/tests/qemu-iotests/126 b/tests/qemu-iotests/126 index dd5a211227..92c0547746 100755 --- a/tests/qemu-iotests/126 +++ b/tests/qemu-iotests/126 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing # # Tests handling of colons in filenames (which may be confused with protoc= ol # prefixes) diff --git a/tests/qemu-iotests/127 b/tests/qemu-iotests/127 index 77fdfd0205..98e8e82a82 100755 --- a/tests/qemu-iotests/127 +++ b/tests/qemu-iotests/127 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing quick # # Test case for mirroring with dataplane # diff --git a/tests/qemu-iotests/128 b/tests/qemu-iotests/128 index 3606c41760..d0e00d24b1 100755 --- a/tests/qemu-iotests/128 +++ b/tests/qemu-iotests/128 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test that opening O_DIRECT succeeds when image file I/O produces EIO # diff --git a/tests/qemu-iotests/129 b/tests/qemu-iotests/129 index 0e13244d85..f57a2e19f6 100755 --- a/tests/qemu-iotests/129 +++ b/tests/qemu-iotests/129 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Tests that "bdrv_drain_all" doesn't drain block jobs # diff --git a/tests/qemu-iotests/130 b/tests/qemu-iotests/130 index a7b365701c..7257f09677 100755 --- a/tests/qemu-iotests/130 +++ b/tests/qemu-iotests/130 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test that temporary backing file overrides (on the command line or in # blockdev-add) don't replace the original path stored in the image during diff --git a/tests/qemu-iotests/131 b/tests/qemu-iotests/131 index 27870231cf..d7456cae5b 100755 --- a/tests/qemu-iotests/131 +++ b/tests/qemu-iotests/131 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # parallels format validation tests (created by QEMU) # diff --git a/tests/qemu-iotests/132 b/tests/qemu-iotests/132 index 39ea43067e..367ea08036 100755 --- a/tests/qemu-iotests/132 +++ b/tests/qemu-iotests/132 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test mirror with unmap # diff --git a/tests/qemu-iotests/133 b/tests/qemu-iotests/133 index bc82d8ebd7..d997db1685 100755 --- a/tests/qemu-iotests/133 +++ b/tests/qemu-iotests/133 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: auto quick # # Test for reopen # diff --git a/tests/qemu-iotests/134 b/tests/qemu-iotests/134 index 17fe1d6ed4..ded153c0b9 100755 --- a/tests/qemu-iotests/134 +++ b/tests/qemu-iotests/134 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test encrypted read/write using plain bdrv_pread/bdrv_pwrite # diff --git a/tests/qemu-iotests/135 b/tests/qemu-iotests/135 index 3b3d1dc2a5..299075b4c9 100755 --- a/tests/qemu-iotests/135 +++ b/tests/qemu-iotests/135 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test VPC open of image with large Max Table Entries value. # diff --git a/tests/qemu-iotests/136 b/tests/qemu-iotests/136 index d59400c9fc..8fce88bd67 100755 --- a/tests/qemu-iotests/136 +++ b/tests/qemu-iotests/136 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Tests for block device statistics # diff --git a/tests/qemu-iotests/137 b/tests/qemu-iotests/137 index de555a91c9..4680d5df3d 100755 --- a/tests/qemu-iotests/137 +++ b/tests/qemu-iotests/137 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # Test qcow2 reopen # diff --git a/tests/qemu-iotests/138 b/tests/qemu-iotests/138 index e87a64eb89..951cfa67d4 100755 --- a/tests/qemu-iotests/138 +++ b/tests/qemu-iotests/138 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # General test case for qcow2's image check # diff --git a/tests/qemu-iotests/139 b/tests/qemu-iotests/139 index 1452fd24b3..e79b3c21fd 100755 --- a/tests/qemu-iotests/139 +++ b/tests/qemu-iotests/139 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test cases for the QMP 'blockdev-del' command # diff --git a/tests/qemu-iotests/140 b/tests/qemu-iotests/140 index ff6b904fa0..91e08c30d4 100755 --- a/tests/qemu-iotests/140 +++ b/tests/qemu-iotests/140 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for ejecting a BlockBackend with an NBD server attached to it # diff --git a/tests/qemu-iotests/141 b/tests/qemu-iotests/141 index 21aa0b42d8..115cc1691e 100755 --- a/tests/qemu-iotests/141 +++ b/tests/qemu-iotests/141 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for ejecting BDSs with block jobs still running on them # diff --git a/tests/qemu-iotests/143 b/tests/qemu-iotests/143 index d2349903b1..72151acf27 100755 --- a/tests/qemu-iotests/143 +++ b/tests/qemu-iotests/143 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: auto quick # # Test case for connecting to a non-existing NBD export name # diff --git a/tests/qemu-iotests/144 b/tests/qemu-iotests/144 index 4569ac0b4b..60e9ddd75f 100755 --- a/tests/qemu-iotests/144 +++ b/tests/qemu-iotests/144 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # Check live snapshot, followed by active commit, and another snapshot. # # This test is to catch the error case of BZ #1300209: diff --git a/tests/qemu-iotests/145 b/tests/qemu-iotests/145 index 9427549651..a2ce92516d 100755 --- a/tests/qemu-iotests/145 +++ b/tests/qemu-iotests/145 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: quick # # Test the combination of -incoming and snapshot=3Don # diff --git a/tests/qemu-iotests/146 b/tests/qemu-iotests/146 index ddc3c1fd80..98aca96732 100755 --- a/tests/qemu-iotests/146 +++ b/tests/qemu-iotests/146 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: quick # # Test VHD image format creator detection and override # diff --git a/tests/qemu-iotests/147 b/tests/qemu-iotests/147 index d7a9f31089..47dfa62e6b 100755 --- a/tests/qemu-iotests/147 +++ b/tests/qemu-iotests/147 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: img # # Test case for NBD's blockdev-add interface # diff --git a/tests/qemu-iotests/148 b/tests/qemu-iotests/148 index 5e14a455b1..7ccbde4633 100755 --- a/tests/qemu-iotests/148 +++ b/tests/qemu-iotests/148 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test the rate limit of QMP events # diff --git a/tests/qemu-iotests/149 b/tests/qemu-iotests/149 index 852768f80a..328fd05a4c 100755 --- a/tests/qemu-iotests/149 +++ b/tests/qemu-iotests/149 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw sudo # # Copyright (C) 2016 Red Hat, Inc. # diff --git a/tests/qemu-iotests/150 b/tests/qemu-iotests/150 index 3b1f32197a..ac6930ae20 100755 --- a/tests/qemu-iotests/150 +++ b/tests/qemu-iotests/150 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test that qemu-img convert -S 0 fully allocates the target image # diff --git a/tests/qemu-iotests/151 b/tests/qemu-iotests/151 index f2df72c29c..182f6b5321 100755 --- a/tests/qemu-iotests/151 +++ b/tests/qemu-iotests/151 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Tests for active mirroring # diff --git a/tests/qemu-iotests/152 b/tests/qemu-iotests/152 index cc2ea09654..4e179c340f 100755 --- a/tests/qemu-iotests/152 +++ b/tests/qemu-iotests/152 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Tests for drive-mirror with source size unaligned to granularity # diff --git a/tests/qemu-iotests/153 b/tests/qemu-iotests/153 index 34045ea3cf..607af59091 100755 --- a/tests/qemu-iotests/153 +++ b/tests/qemu-iotests/153 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test image locking # diff --git a/tests/qemu-iotests/154 b/tests/qemu-iotests/154 index 34a1c051b6..24e29ae2ff 100755 --- a/tests/qemu-iotests/154 +++ b/tests/qemu-iotests/154 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing quick # # qcow2 specific bdrv_pwrite_zeroes tests with backing files (complements = 034) # diff --git a/tests/qemu-iotests/155 b/tests/qemu-iotests/155 index 988f986144..bafef9dd9a 100755 --- a/tests/qemu-iotests/155 +++ b/tests/qemu-iotests/155 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Test whether the backing BDSs are correct after completion of a # mirror block job; in "existing" modes (drive-mirror with diff --git a/tests/qemu-iotests/156 b/tests/qemu-iotests/156 index 9c7878dd2d..65dcedd493 100755 --- a/tests/qemu-iotests/156 +++ b/tests/qemu-iotests/156 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Tests oVirt-like storage migration: # - Create snapshot diff --git a/tests/qemu-iotests/157 b/tests/qemu-iotests/157 index 7cbac38099..0dc9ba68d2 100755 --- a/tests/qemu-iotests/157 +++ b/tests/qemu-iotests/157 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: quick # # Test command line configuration of block devices with qdev # diff --git a/tests/qemu-iotests/158 b/tests/qemu-iotests/158 index cf23742c59..a95878e4ce 100755 --- a/tests/qemu-iotests/158 +++ b/tests/qemu-iotests/158 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test encrypted read/write using backing files # diff --git a/tests/qemu-iotests/159 b/tests/qemu-iotests/159 index f9690053a2..4eb476d3a8 100755 --- a/tests/qemu-iotests/159 +++ b/tests/qemu-iotests/159 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # qemu-img dd test with different block sizes # diff --git a/tests/qemu-iotests/160 b/tests/qemu-iotests/160 index 0572b5ae9a..7984a9c6f7 100755 --- a/tests/qemu-iotests/160 +++ b/tests/qemu-iotests/160 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # qemu-img dd test for the skip option # diff --git a/tests/qemu-iotests/161 b/tests/qemu-iotests/161 index 4fb7d0cbf0..f25effab93 100755 --- a/tests/qemu-iotests/161 +++ b/tests/qemu-iotests/161 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test reopening a backing image after block-stream and block-commit # diff --git a/tests/qemu-iotests/162 b/tests/qemu-iotests/162 index c0053ed975..cf17f494d8 100755 --- a/tests/qemu-iotests/162 +++ b/tests/qemu-iotests/162 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: quick # # Test case for specifying runtime options of the wrong type to some # block drivers diff --git a/tests/qemu-iotests/163 b/tests/qemu-iotests/163 index 5a3cc840a5..dedce8ef43 100755 --- a/tests/qemu-iotests/163 +++ b/tests/qemu-iotests/163 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Tests for shrinking images # diff --git a/tests/qemu-iotests/165 b/tests/qemu-iotests/165 index fb56a769b4..abc4ffadd5 100755 --- a/tests/qemu-iotests/165 +++ b/tests/qemu-iotests/165 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Tests for persistent dirty bitmaps. # diff --git a/tests/qemu-iotests/169 b/tests/qemu-iotests/169 index 40afb15299..a5c7bc83e0 100755 --- a/tests/qemu-iotests/169 +++ b/tests/qemu-iotests/169 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw migration # # Tests for dirty bitmaps migration. # diff --git a/tests/qemu-iotests/170 b/tests/qemu-iotests/170 index 6c8f0e8085..41387e4d66 100755 --- a/tests/qemu-iotests/170 +++ b/tests/qemu-iotests/170 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # qemu-img dd test # diff --git a/tests/qemu-iotests/171 b/tests/qemu-iotests/171 index f3582edb10..d1d77f7013 100755 --- a/tests/qemu-iotests/171 +++ b/tests/qemu-iotests/171 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test 'offset' and 'size' options of the raw driver. Make sure we can't # (or can) read and write outside of the image size. diff --git a/tests/qemu-iotests/172 b/tests/qemu-iotests/172 index b45782e8db..0ac942a6c5 100755 --- a/tests/qemu-iotests/172 +++ b/tests/qemu-iotests/172 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: auto # # Test floppy configuration # diff --git a/tests/qemu-iotests/173 b/tests/qemu-iotests/173 index ec6d1705e5..9594f3c5ea 100755 --- a/tests/qemu-iotests/173 +++ b/tests/qemu-iotests/173 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test QAPI commands looking up protocol based images with relative # filename backing strings diff --git a/tests/qemu-iotests/174 b/tests/qemu-iotests/174 index 1b0dd2e8b7..d4cecb5756 100755 --- a/tests/qemu-iotests/174 +++ b/tests/qemu-iotests/174 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: auto # # Test that qemu-io fail with non-zero exit code # diff --git a/tests/qemu-iotests/175 b/tests/qemu-iotests/175 index 21a77a2bf5..f74f053b71 100755 --- a/tests/qemu-iotests/175 +++ b/tests/qemu-iotests/175 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: quick # # Test creating raw image preallocation mode # diff --git a/tests/qemu-iotests/176 b/tests/qemu-iotests/176 index 5ce3b27069..27ac25467f 100755 --- a/tests/qemu-iotests/176 +++ b/tests/qemu-iotests/176 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing # # Commit changes into backing chains and empty the top image if the # backing image is not explicitly specified. diff --git a/tests/qemu-iotests/177 b/tests/qemu-iotests/177 index 595bfd4236..8d8745b29a 100755 --- a/tests/qemu-iotests/177 +++ b/tests/qemu-iotests/177 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test corner cases with unusual block geometries # diff --git a/tests/qemu-iotests/178 b/tests/qemu-iotests/178 index f09b27caac..3b1a7adce4 100755 --- a/tests/qemu-iotests/178 +++ b/tests/qemu-iotests/178 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: img # # qemu-img measure sub-command tests # diff --git a/tests/qemu-iotests/179 b/tests/qemu-iotests/179 index 7ada04c641..09447b5610 100755 --- a/tests/qemu-iotests/179 +++ b/tests/qemu-iotests/179 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test case for write zeroes with unmap # diff --git a/tests/qemu-iotests/181 b/tests/qemu-iotests/181 index 438c2dcd80..820c53ef35 100755 --- a/tests/qemu-iotests/181 +++ b/tests/qemu-iotests/181 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto migration quick # # Test postcopy live migration with shared storage # diff --git a/tests/qemu-iotests/182 b/tests/qemu-iotests/182 index 56a2dd58e6..55a0384c08 100755 --- a/tests/qemu-iotests/182 +++ b/tests/qemu-iotests/182 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test image locking for POSIX locks # diff --git a/tests/qemu-iotests/183 b/tests/qemu-iotests/183 index d889a3b19c..ee62939e72 100755 --- a/tests/qemu-iotests/183 +++ b/tests/qemu-iotests/183 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw migration quick # # Test old-style block migration (migrate -b) # diff --git a/tests/qemu-iotests/184 b/tests/qemu-iotests/184 index eebb53faed..513d167098 100755 --- a/tests/qemu-iotests/184 +++ b/tests/qemu-iotests/184 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test I/O throttle block filter driver interface # diff --git a/tests/qemu-iotests/185 b/tests/qemu-iotests/185 index fd5e6ebe11..7bc8fe5767 100755 --- a/tests/qemu-iotests/185 +++ b/tests/qemu-iotests/185 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test exiting qemu while jobs are still running # diff --git a/tests/qemu-iotests/186 b/tests/qemu-iotests/186 index 0db25b0e68..072e54e62b 100755 --- a/tests/qemu-iotests/186 +++ b/tests/qemu-iotests/186 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # Test 'info block' with all kinds of configurations # diff --git a/tests/qemu-iotests/187 b/tests/qemu-iotests/187 index f262d83e3a..70b74b033c 100755 --- a/tests/qemu-iotests/187 +++ b/tests/qemu-iotests/187 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # Test switching between read-only and read-write # diff --git a/tests/qemu-iotests/188 b/tests/qemu-iotests/188 index 13b225fded..ce087d1873 100755 --- a/tests/qemu-iotests/188 +++ b/tests/qemu-iotests/188 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test encrypted read/write using plain bdrv_pread/bdrv_pwrite # diff --git a/tests/qemu-iotests/189 b/tests/qemu-iotests/189 index 3e5ded14c6..4e463385b2 100755 --- a/tests/qemu-iotests/189 +++ b/tests/qemu-iotests/189 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test encrypted read/write using backing files # diff --git a/tests/qemu-iotests/190 b/tests/qemu-iotests/190 index c22d8d64f9..7fb8447354 100755 --- a/tests/qemu-iotests/190 +++ b/tests/qemu-iotests/190 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # qemu-img measure sub-command tests on huge qcow2 files # diff --git a/tests/qemu-iotests/191 b/tests/qemu-iotests/191 index 95a891350d..ce695b95c2 100755 --- a/tests/qemu-iotests/191 +++ b/tests/qemu-iotests/191 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # Test commit block job where top has two parents # diff --git a/tests/qemu-iotests/192 b/tests/qemu-iotests/192 index d2ba55dd90..d809187fca 100755 --- a/tests/qemu-iotests/192 +++ b/tests/qemu-iotests/192 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test NBD export with -incoming (non-shared storage migration use case fr= om # libvirt) diff --git a/tests/qemu-iotests/194 b/tests/qemu-iotests/194 index 7a4863ab18..3889266afa 100755 --- a/tests/qemu-iotests/194 +++ b/tests/qemu-iotests/194 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw migration quick # # Copyright (C) 2017 Red Hat, Inc. # diff --git a/tests/qemu-iotests/195 b/tests/qemu-iotests/195 index 967af5b7b5..f1df69079f 100755 --- a/tests/qemu-iotests/195 +++ b/tests/qemu-iotests/195 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test change-backing-file command # diff --git a/tests/qemu-iotests/196 b/tests/qemu-iotests/196 index e8fcf37273..2451515094 100755 --- a/tests/qemu-iotests/196 +++ b/tests/qemu-iotests/196 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick migration # # Test clearing unknown autoclear_features flag by qcow2 after # migration. This test mimics migration to older qemu. diff --git a/tests/qemu-iotests/197 b/tests/qemu-iotests/197 index a161c89816..a2547bc280 100755 --- a/tests/qemu-iotests/197 +++ b/tests/qemu-iotests/197 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test case for copy-on-read into qcow2 # diff --git a/tests/qemu-iotests/198 b/tests/qemu-iotests/198 index 46f0c54537..b333a8f281 100755 --- a/tests/qemu-iotests/198 +++ b/tests/qemu-iotests/198 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test commit of encrypted qcow2 files # diff --git a/tests/qemu-iotests/199 b/tests/qemu-iotests/199 index 58fad872a1..dbf10e58d3 100755 --- a/tests/qemu-iotests/199 +++ b/tests/qemu-iotests/199 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw migration # # Tests for dirty bitmaps postcopy migration. # diff --git a/tests/qemu-iotests/200 b/tests/qemu-iotests/200 index 046539154f..f80517e342 100755 --- a/tests/qemu-iotests/200 +++ b/tests/qemu-iotests/200 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Block job co-routine race condition test. # diff --git a/tests/qemu-iotests/201 b/tests/qemu-iotests/201 index 483eb189c5..1b8eb51d8f 100755 --- a/tests/qemu-iotests/201 +++ b/tests/qemu-iotests/201 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw migration quick # # Test savevm and loadvm after live migration with postcopy flag # diff --git a/tests/qemu-iotests/202 b/tests/qemu-iotests/202 index e3900a44d1..8eb5f32d15 100755 --- a/tests/qemu-iotests/202 +++ b/tests/qemu-iotests/202 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Copyright (C) 2017 Red Hat, Inc. # diff --git a/tests/qemu-iotests/203 b/tests/qemu-iotests/203 index 4b4bd3307d..ea30e50497 100755 --- a/tests/qemu-iotests/203 +++ b/tests/qemu-iotests/203 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw auto migration quick # # Copyright (C) 2017 Red Hat, Inc. # diff --git a/tests/qemu-iotests/204 b/tests/qemu-iotests/204 index 536bb8b534..ab68b6d75c 100755 --- a/tests/qemu-iotests/204 +++ b/tests/qemu-iotests/204 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test corner cases with unusual block geometries # diff --git a/tests/qemu-iotests/205 b/tests/qemu-iotests/205 index 43432cb599..c0e107328f 100755 --- a/tests/qemu-iotests/205 +++ b/tests/qemu-iotests/205 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Tests for qmp command nbd-server-remove. # diff --git a/tests/qemu-iotests/206 b/tests/qemu-iotests/206 index d12d7cb566..c3cdad4ce4 100755 --- a/tests/qemu-iotests/206 +++ b/tests/qemu-iotests/206 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Test qcow2 and file image creation # diff --git a/tests/qemu-iotests/207 b/tests/qemu-iotests/207 index a6621410da..f9f3fd7131 100755 --- a/tests/qemu-iotests/207 +++ b/tests/qemu-iotests/207 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Test ssh image creation # diff --git a/tests/qemu-iotests/208 b/tests/qemu-iotests/208 index 54aa4be273..6117f165fa 100755 --- a/tests/qemu-iotests/208 +++ b/tests/qemu-iotests/208 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Copyright (C) 2018 Red Hat, Inc. # diff --git a/tests/qemu-iotests/209 b/tests/qemu-iotests/209 index 8c804f4a30..ff7efea11b 100755 --- a/tests/qemu-iotests/209 +++ b/tests/qemu-iotests/209 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Tests for NBD BLOCK_STATUS extension # diff --git a/tests/qemu-iotests/210 b/tests/qemu-iotests/210 index 7bf591f313..5a62ed4dd1 100755 --- a/tests/qemu-iotests/210 +++ b/tests/qemu-iotests/210 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Test luks and file image creation # diff --git a/tests/qemu-iotests/211 b/tests/qemu-iotests/211 index 4969edb00c..f52cadade1 100755 --- a/tests/qemu-iotests/211 +++ b/tests/qemu-iotests/211 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test VDI and file image creation # diff --git a/tests/qemu-iotests/212 b/tests/qemu-iotests/212 index 45d08842bb..d4af0c4ac8 100755 --- a/tests/qemu-iotests/212 +++ b/tests/qemu-iotests/212 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test parallels and file image creation # diff --git a/tests/qemu-iotests/213 b/tests/qemu-iotests/213 index cf638eb927..78d839ab64 100755 --- a/tests/qemu-iotests/213 +++ b/tests/qemu-iotests/213 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test vhdx and file image creation # diff --git a/tests/qemu-iotests/214 b/tests/qemu-iotests/214 index 75ae7a14b5..0889089d81 100755 --- a/tests/qemu-iotests/214 +++ b/tests/qemu-iotests/214 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # Test qcow2 image compression # diff --git a/tests/qemu-iotests/215 b/tests/qemu-iotests/215 index f99bae78c7..d464596f14 100755 --- a/tests/qemu-iotests/215 +++ b/tests/qemu-iotests/215 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test case for copy-on-read into qcow2, using the COR filter driver # diff --git a/tests/qemu-iotests/216 b/tests/qemu-iotests/216 index f93c61aad6..c02f8d2880 100755 --- a/tests/qemu-iotests/216 +++ b/tests/qemu-iotests/216 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Copy-on-read tests using a COR filter node # diff --git a/tests/qemu-iotests/217 b/tests/qemu-iotests/217 index 7385342498..e693f326a3 100755 --- a/tests/qemu-iotests/217 +++ b/tests/qemu-iotests/217 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # I/O errors when working with internal qcow2 snapshots, and repairing # the result diff --git a/tests/qemu-iotests/218 b/tests/qemu-iotests/218 index 5586870456..ae7c4fb187 100755 --- a/tests/qemu-iotests/218 +++ b/tests/qemu-iotests/218 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # This test covers what happens when a mirror block job is cancelled # in various phases of its existence. diff --git a/tests/qemu-iotests/219 b/tests/qemu-iotests/219 index db272c5249..16c3ca7fff 100755 --- a/tests/qemu-iotests/219 +++ b/tests/qemu-iotests/219 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Copyright (C) 2018 Red Hat, Inc. # diff --git a/tests/qemu-iotests/220 b/tests/qemu-iotests/220 index 9ba3b3fdcb..7d08b9b040 100755 --- a/tests/qemu-iotests/220 +++ b/tests/qemu-iotests/220 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # max limits on compression in huge qcow2 files # diff --git a/tests/qemu-iotests/221 b/tests/qemu-iotests/221 index 7e6086b205..c463fd4b11 100755 --- a/tests/qemu-iotests/221 +++ b/tests/qemu-iotests/221 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test qemu-img vs. unaligned images # (See also 253, which is the O_DIRECT version) diff --git a/tests/qemu-iotests/222 b/tests/qemu-iotests/222 index 14d67c875b..b48afe623e 100755 --- a/tests/qemu-iotests/222 +++ b/tests/qemu-iotests/222 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # This test covers the basic fleecing workflow, which provides a # point-in-time snapshot of a node that can be queried over NBD. diff --git a/tests/qemu-iotests/223 b/tests/qemu-iotests/223 index d68bc3cb6f..da87f2f4a2 100755 --- a/tests/qemu-iotests/223 +++ b/tests/qemu-iotests/223 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test reading dirty bitmap over NBD # diff --git a/tests/qemu-iotests/224 b/tests/qemu-iotests/224 index 017b0685ba..38dd153625 100755 --- a/tests/qemu-iotests/224 +++ b/tests/qemu-iotests/224 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test json:{} filenames with qemu-internal BDSs # (the one of commit, to be precise) diff --git a/tests/qemu-iotests/225 b/tests/qemu-iotests/225 index 0186ec8156..c0053790db 100755 --- a/tests/qemu-iotests/225 +++ b/tests/qemu-iotests/225 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test vmdk backing file correlation # diff --git a/tests/qemu-iotests/226 b/tests/qemu-iotests/226 index c1e1fb2b1c..6a9adb4a0b 100755 --- a/tests/qemu-iotests/226 +++ b/tests/qemu-iotests/226 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: auto quick # # This test covers expected filetypes for the file, host_cdrom and # host_device drivers. diff --git a/tests/qemu-iotests/227 b/tests/qemu-iotests/227 index 637d7c3726..7e45a47ac6 100755 --- a/tests/qemu-iotests/227 +++ b/tests/qemu-iotests/227 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: quick # # Test query-blockstats with different ways to create a BB # diff --git a/tests/qemu-iotests/228 b/tests/qemu-iotests/228 index 266fce6cda..a5eda2e149 100755 --- a/tests/qemu-iotests/228 +++ b/tests/qemu-iotests/228 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test for when a backing file is considered overridden (thus, a # json:{} filename is generated for the overlay) and when it is not diff --git a/tests/qemu-iotests/229 b/tests/qemu-iotests/229 index 273ac2472d..4bc99390b5 100755 --- a/tests/qemu-iotests/229 +++ b/tests/qemu-iotests/229 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: auto quick # # Test for force canceling a running blockjob that is paused in # an error state. diff --git a/tests/qemu-iotests/231 b/tests/qemu-iotests/231 index c0b053ac30..0f66d0ca36 100755 --- a/tests/qemu-iotests/231 +++ b/tests/qemu-iotests/231 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: quick # # Test legacy and modern option parsing for rbd/ceph. This will not # actually connect to a ceph server, but rather looks for the appropriate diff --git a/tests/qemu-iotests/232 b/tests/qemu-iotests/232 index 685356ac3b..b30faaa218 100755 --- a/tests/qemu-iotests/232 +++ b/tests/qemu-iotests/232 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: quick # # Test for auto-read-only # diff --git a/tests/qemu-iotests/233 b/tests/qemu-iotests/233 index a5c17c3963..7ce5764903 100755 --- a/tests/qemu-iotests/233 +++ b/tests/qemu-iotests/233 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: quick # # Test NBD TLS certificate / authorization integration # diff --git a/tests/qemu-iotests/234 b/tests/qemu-iotests/234 index 73c899ddae..cb5f1753e0 100755 --- a/tests/qemu-iotests/234 +++ b/tests/qemu-iotests/234 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: quick migration # # Copyright (C) 2018 Red Hat, Inc. # diff --git a/tests/qemu-iotests/235 b/tests/qemu-iotests/235 index d1b10ac36b..20d16dbf38 100755 --- a/tests/qemu-iotests/235 +++ b/tests/qemu-iotests/235 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: quick # # Simple mirror test # diff --git a/tests/qemu-iotests/236 b/tests/qemu-iotests/236 index 6f5cee2444..f6c44517d6 100755 --- a/tests/qemu-iotests/236 +++ b/tests/qemu-iotests/236 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: quick # # Test bitmap merges. # diff --git a/tests/qemu-iotests/237 b/tests/qemu-iotests/237 index 5b21ad3509..43dfd3bd40 100755 --- a/tests/qemu-iotests/237 +++ b/tests/qemu-iotests/237 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test vmdk and file image creation # diff --git a/tests/qemu-iotests/238 b/tests/qemu-iotests/238 index b8fcf15a1f..8a10af57f1 100755 --- a/tests/qemu-iotests/238 +++ b/tests/qemu-iotests/238 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: quick # # Regression test for throttle group member unregister segfault with iothr= ead # diff --git a/tests/qemu-iotests/239 b/tests/qemu-iotests/239 index b0991ffe59..4f0037148d 100755 --- a/tests/qemu-iotests/239 +++ b/tests/qemu-iotests/239 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test case for dmg # diff --git a/tests/qemu-iotests/240 b/tests/qemu-iotests/240 index c0f71f0461..ab077f4ceb 100755 --- a/tests/qemu-iotests/240 +++ b/tests/qemu-iotests/240 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: quick =20 # Test hot plugging and unplugging with iothreads # diff --git a/tests/qemu-iotests/241 b/tests/qemu-iotests/241 index 8dae8d39e4..c962c8b607 100755 --- a/tests/qemu-iotests/241 +++ b/tests/qemu-iotests/241 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test qemu-nbd vs. unaligned images # diff --git a/tests/qemu-iotests/242 b/tests/qemu-iotests/242 index a16de3085f..a9b27668c2 100755 --- a/tests/qemu-iotests/242 +++ b/tests/qemu-iotests/242 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test for qcow2 bitmap printed information # diff --git a/tests/qemu-iotests/243 b/tests/qemu-iotests/243 index 17388a4644..8bbb510120 100755 --- a/tests/qemu-iotests/243 +++ b/tests/qemu-iotests/243 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test qcow2 preallocation # diff --git a/tests/qemu-iotests/244 b/tests/qemu-iotests/244 index f2b2dddf1c..a46b441627 100755 --- a/tests/qemu-iotests/244 +++ b/tests/qemu-iotests/244 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test qcow2 with external data files # diff --git a/tests/qemu-iotests/245 b/tests/qemu-iotests/245 index e60c8326d3..86f00f290f 100755 --- a/tests/qemu-iotests/245 +++ b/tests/qemu-iotests/245 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Test cases for the QMP 'x-blockdev-reopen' command # diff --git a/tests/qemu-iotests/246 b/tests/qemu-iotests/246 index 58a479cc1f..fa3102c546 100755 --- a/tests/qemu-iotests/246 +++ b/tests/qemu-iotests/246 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test persistent bitmap resizing. # diff --git a/tests/qemu-iotests/247 b/tests/qemu-iotests/247 index 6cf2679750..ace6dba052 100755 --- a/tests/qemu-iotests/247 +++ b/tests/qemu-iotests/247 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test for auto-read-only with commit block job # diff --git a/tests/qemu-iotests/248 b/tests/qemu-iotests/248 index 18ba03467e..4daaed1530 100755 --- a/tests/qemu-iotests/248 +++ b/tests/qemu-iotests/248 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test resume mirror after auto pause on ENOSPC # diff --git a/tests/qemu-iotests/249 b/tests/qemu-iotests/249 index 29453b8c90..28bffd4d57 100755 --- a/tests/qemu-iotests/249 +++ b/tests/qemu-iotests/249 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test that a backing image is put back in read-only mode after # block-commit (both when it fails and when it succeeds). diff --git a/tests/qemu-iotests/250 b/tests/qemu-iotests/250 index 3df275c76b..f069ca1759 100755 --- a/tests/qemu-iotests/250 +++ b/tests/qemu-iotests/250 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test big discard in qcow2 shrink # diff --git a/tests/qemu-iotests/251 b/tests/qemu-iotests/251 index 294773bdc1..8bdec37d32 100755 --- a/tests/qemu-iotests/251 +++ b/tests/qemu-iotests/251 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test qemu-img convert --salvage # diff --git a/tests/qemu-iotests/252 b/tests/qemu-iotests/252 index 1d74afff99..2134b9993a 100755 --- a/tests/qemu-iotests/252 +++ b/tests/qemu-iotests/252 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto backing quick # # Tests for rebasing COW images that require zero cluster support # diff --git a/tests/qemu-iotests/253 b/tests/qemu-iotests/253 index d88d5afa45..35039d20a8 100755 --- a/tests/qemu-iotests/253 +++ b/tests/qemu-iotests/253 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test qemu-img vs. unaligned images; O_DIRECT version # (Originates from 221) diff --git a/tests/qemu-iotests/254 b/tests/qemu-iotests/254 index 150e58be8e..49da948407 100755 --- a/tests/qemu-iotests/254 +++ b/tests/qemu-iotests/254 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw backing quick # # Test external snapshot with bitmap copying and moving. # diff --git a/tests/qemu-iotests/255 b/tests/qemu-iotests/255 index 8f08f741da..c43aa9c67a 100755 --- a/tests/qemu-iotests/255 +++ b/tests/qemu-iotests/255 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test commit job graph modifications while requests are active # diff --git a/tests/qemu-iotests/256 b/tests/qemu-iotests/256 index db8d6f31cf..8d82a1dd86 100755 --- a/tests/qemu-iotests/256 +++ b/tests/qemu-iotests/256 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw auto quick # # Test incremental/backup across iothread contexts # diff --git a/tests/qemu-iotests/257 b/tests/qemu-iotests/257 index c80e06ae28..a2f4b5afe6 100755 --- a/tests/qemu-iotests/257 +++ b/tests/qemu-iotests/257 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Test bitmap-sync backups (incremental, differential, and partials) # diff --git a/tests/qemu-iotests/258 b/tests/qemu-iotests/258 index e305a1502f..9a2d33ae5e 100755 --- a/tests/qemu-iotests/258 +++ b/tests/qemu-iotests/258 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Very specific tests for adjacent commit/stream block jobs # diff --git a/tests/qemu-iotests/259 b/tests/qemu-iotests/259 index 62e29af05f..76cde429c4 100755 --- a/tests/qemu-iotests/259 +++ b/tests/qemu-iotests/259 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test generic image creation fallback (by using NBD) # diff --git a/tests/qemu-iotests/260 b/tests/qemu-iotests/260 index 804a7addb9..a35cb7b61f 100755 --- a/tests/qemu-iotests/260 +++ b/tests/qemu-iotests/260 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Tests for temporary external snapshot when we have bitmaps. # diff --git a/tests/qemu-iotests/261 b/tests/qemu-iotests/261 index 847b4c6a37..d1c8037ab1 100755 --- a/tests/qemu-iotests/261 +++ b/tests/qemu-iotests/261 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test case for qcow2's handling of extra data in snapshot table entries # (and more generally, how certain cases of broken snapshot tables are diff --git a/tests/qemu-iotests/262 b/tests/qemu-iotests/262 index 03af061f94..32d69988ef 100755 --- a/tests/qemu-iotests/262 +++ b/tests/qemu-iotests/262 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick migration # # Copyright (C) 2019 Red Hat, Inc. # diff --git a/tests/qemu-iotests/263 b/tests/qemu-iotests/263 index f598a12899..ec09b41405 100755 --- a/tests/qemu-iotests/263 +++ b/tests/qemu-iotests/263 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test encrypted write that crosses cluster boundary of two unallocated cl= usters # Based on 188 diff --git a/tests/qemu-iotests/264 b/tests/qemu-iotests/264 index 666f164ed8..960f0449a4 100755 --- a/tests/qemu-iotests/264 +++ b/tests/qemu-iotests/264 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Test nbd reconnect # diff --git a/tests/qemu-iotests/265 b/tests/qemu-iotests/265 index 0e800fb524..4b3b52c6e6 100755 --- a/tests/qemu-iotests/265 +++ b/tests/qemu-iotests/265 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test reverse-ordered qcow2 writes on a sub-cluster level # diff --git a/tests/qemu-iotests/266 b/tests/qemu-iotests/266 index 91bdf8729e..71ce81d0df 100755 --- a/tests/qemu-iotests/266 +++ b/tests/qemu-iotests/266 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test VPC and file image creation # diff --git a/tests/qemu-iotests/267 b/tests/qemu-iotests/267 index e44be49c77..2e2afdad9c 100755 --- a/tests/qemu-iotests/267 +++ b/tests/qemu-iotests/267 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick snapshot # # Test which nodes are involved in internal snapshots # diff --git a/tests/qemu-iotests/268 b/tests/qemu-iotests/268 index ddf4312284..9a8a563760 100755 --- a/tests/qemu-iotests/268 +++ b/tests/qemu-iotests/268 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test write request with required alignment larger than the cluster size # diff --git a/tests/qemu-iotests/270 b/tests/qemu-iotests/270 index 00339c0f78..74352342db 100755 --- a/tests/qemu-iotests/270 +++ b/tests/qemu-iotests/270 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw backing quick # # Test large write to a qcow2 image # diff --git a/tests/qemu-iotests/271 b/tests/qemu-iotests/271 index e242b28b58..599b849cc6 100755 --- a/tests/qemu-iotests/271 +++ b/tests/qemu-iotests/271 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto # # Test qcow2 images with extended L2 entries # diff --git a/tests/qemu-iotests/272 b/tests/qemu-iotests/272 index de475bf6f0..4bcf410d81 100755 --- a/tests/qemu-iotests/272 +++ b/tests/qemu-iotests/272 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test compressed write to a qcow2 image at an offset above 4 GB # diff --git a/tests/qemu-iotests/273 b/tests/qemu-iotests/273 index 79b4ab4b05..6c33305b4d 100755 --- a/tests/qemu-iotests/273 +++ b/tests/qemu-iotests/273 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: backing quick # # Test multiple blockdev-snapshot calls with 'backing': null # diff --git a/tests/qemu-iotests/274 b/tests/qemu-iotests/274 index 76b1ba6a52..caab008e07 100755 --- a/tests/qemu-iotests/274 +++ b/tests/qemu-iotests/274 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw backing # # Copyright (C) 2019 Red Hat, Inc. # diff --git a/tests/qemu-iotests/277 b/tests/qemu-iotests/277 index a39ce2d873..24833e7eb6 100755 --- a/tests/qemu-iotests/277 +++ b/tests/qemu-iotests/277 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test NBD client reconnection # diff --git a/tests/qemu-iotests/279 b/tests/qemu-iotests/279 index 2a6315cf17..6afef78bc8 100755 --- a/tests/qemu-iotests/279 +++ b/tests/qemu-iotests/279 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw backing quick # # Test qemu-img --backing-chain --image-opts # diff --git a/tests/qemu-iotests/280 b/tests/qemu-iotests/280 index f594bb9ed2..628f3c33ca 100755 --- a/tests/qemu-iotests/280 +++ b/tests/qemu-iotests/280 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw migration quick # # Copyright (C) 2019 Red Hat, Inc. # diff --git a/tests/qemu-iotests/281 b/tests/qemu-iotests/281 index 0bf973bca6..956698083f 100755 --- a/tests/qemu-iotests/281 +++ b/tests/qemu-iotests/281 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test cases for blockdev + IOThread interactions # diff --git a/tests/qemu-iotests/282 b/tests/qemu-iotests/282 index 27da2a0023..3140445989 100755 --- a/tests/qemu-iotests/282 +++ b/tests/qemu-iotests/282 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw img quick # # Test qemu-img file cleanup for LUKS when using a non-UTF8 secret # diff --git a/tests/qemu-iotests/283 b/tests/qemu-iotests/283 index 383797ed62..79643e375b 100755 --- a/tests/qemu-iotests/283 +++ b/tests/qemu-iotests/283 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: auto quick # # Test for backup-top filter permission activation failure # diff --git a/tests/qemu-iotests/284 b/tests/qemu-iotests/284 index 9f6c29a79c..5a82639e7f 100755 --- a/tests/qemu-iotests/284 +++ b/tests/qemu-iotests/284 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test ref count checks on encrypted images # diff --git a/tests/qemu-iotests/286 b/tests/qemu-iotests/286 index f64e0eccea..120a8375b7 100755 --- a/tests/qemu-iotests/286 +++ b/tests/qemu-iotests/286 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test qemu-img snapshot -l # diff --git a/tests/qemu-iotests/287 b/tests/qemu-iotests/287 index 3bb383fd4b..22ce9ff0e4 100755 --- a/tests/qemu-iotests/287 +++ b/tests/qemu-iotests/287 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: auto quick # # Test case for an image using zstd compression # diff --git a/tests/qemu-iotests/288 b/tests/qemu-iotests/288 index 6c62065aef..47aca6592a 100755 --- a/tests/qemu-iotests/288 +++ b/tests/qemu-iotests/288 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: quick # # qemu-img measure tests for LUKS images # diff --git a/tests/qemu-iotests/289 b/tests/qemu-iotests/289 index fe69bde1eb..5dd6ec62db 100755 --- a/tests/qemu-iotests/289 +++ b/tests/qemu-iotests/289 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # qcow2 v3-exclusive error path testing # (026 tests paths common to v2 and v3) diff --git a/tests/qemu-iotests/290 b/tests/qemu-iotests/290 index 35c38d4f80..ed80da2685 100755 --- a/tests/qemu-iotests/290 +++ b/tests/qemu-iotests/290 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test how 'qemu-io -c discard' behaves on v2 and v3 qcow2 images # diff --git a/tests/qemu-iotests/291 b/tests/qemu-iotests/291 index bc70d5e389..20efb080a6 100755 --- a/tests/qemu-iotests/291 +++ b/tests/qemu-iotests/291 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test qemu-img bitmap handling # diff --git a/tests/qemu-iotests/292 b/tests/qemu-iotests/292 index 3ae2772e3b..73cbb9364a 100755 --- a/tests/qemu-iotests/292 +++ b/tests/qemu-iotests/292 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test resizing a qcow2 image with a backing file # diff --git a/tests/qemu-iotests/293 b/tests/qemu-iotests/293 index 3363bf07f0..37294487b1 100755 --- a/tests/qemu-iotests/293 +++ b/tests/qemu-iotests/293 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test encryption key management with luks # Based on 134 diff --git a/tests/qemu-iotests/294 b/tests/qemu-iotests/294 index 4c375ed609..9059eb26b3 100755 --- a/tests/qemu-iotests/294 +++ b/tests/qemu-iotests/294 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Copyright (C) 2019 Red Hat, Inc. # diff --git a/tests/qemu-iotests/295 b/tests/qemu-iotests/295 index 59e674fa85..01a6c0b31f 100755 --- a/tests/qemu-iotests/295 +++ b/tests/qemu-iotests/295 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Test case QMP's encrypted key management # diff --git a/tests/qemu-iotests/296 b/tests/qemu-iotests/296 index fb7dec88aa..0bc3c6c7d7 100755 --- a/tests/qemu-iotests/296 +++ b/tests/qemu-iotests/296 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw # # Test case for encryption key management versus image sharing # diff --git a/tests/qemu-iotests/297 b/tests/qemu-iotests/297 index 5c5420712b..85bc1c0c85 100755 --- a/tests/qemu-iotests/297 +++ b/tests/qemu-iotests/297 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: meta # # Copyright (C) 2020 Red Hat, Inc. # diff --git a/tests/qemu-iotests/299 b/tests/qemu-iotests/299 index e129c7f7cb..a7122941fd 100755 --- a/tests/qemu-iotests/299 +++ b/tests/qemu-iotests/299 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: auto quick # # Test shutdown when bitmap is exported through NBD server # diff --git a/tests/qemu-iotests/300 b/tests/qemu-iotests/300 index 5b75121b84..23aca59d9c 100755 --- a/tests/qemu-iotests/300 +++ b/tests/qemu-iotests/300 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: migration # # Copyright (C) 2020 Red Hat, Inc. # diff --git a/tests/qemu-iotests/301 b/tests/qemu-iotests/301 index 3823e95617..9f943cadbe 100755 --- a/tests/qemu-iotests/301 +++ b/tests/qemu-iotests/301 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: backing quick # # Test qcow backing file warnings # diff --git a/tests/qemu-iotests/302 b/tests/qemu-iotests/302 index a8506bda15..5695af4914 100755 --- a/tests/qemu-iotests/302 +++ b/tests/qemu-iotests/302 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: quick # # Tests converting qcow2 compressed to NBD # diff --git a/tests/qemu-iotests/303 b/tests/qemu-iotests/303 index 11cd9eeb26..425544c064 100755 --- a/tests/qemu-iotests/303 +++ b/tests/qemu-iotests/303 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Test for dumping of qcow2 image metadata # diff --git a/tests/qemu-iotests/304 b/tests/qemu-iotests/304 index aaf9e14617..198f282087 100755 --- a/tests/qemu-iotests/304 +++ b/tests/qemu-iotests/304 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick # # Tests dirty-bitmap backup with unaligned bitmap granularity # diff --git a/tests/qemu-iotests/305 b/tests/qemu-iotests/305 index 5a415eb2a4..8b26156923 100755 --- a/tests/qemu-iotests/305 +++ b/tests/qemu-iotests/305 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test the handling of errors in write requests with multiple allocations # diff --git a/tests/qemu-iotests/307 b/tests/qemu-iotests/307 index de7c25fcfc..9008974346 100755 --- a/tests/qemu-iotests/307 +++ b/tests/qemu-iotests/307 @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# group: rw quick export # # Copyright (C) 2020 Red Hat, Inc. # diff --git a/tests/qemu-iotests/308 b/tests/qemu-iotests/308 index b30f4400f6..f122065d0f 100755 --- a/tests/qemu-iotests/308 +++ b/tests/qemu-iotests/308 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw # # Test FUSE exports (in ways that are not captured by the generic # tests) diff --git a/tests/qemu-iotests/309 b/tests/qemu-iotests/309 index fb61157c2e..b90b279994 100755 --- a/tests/qemu-iotests/309 +++ b/tests/qemu-iotests/309 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw auto quick # # Test qemu-nbd -A # diff --git a/tests/qemu-iotests/312 b/tests/qemu-iotests/312 index 41340494b0..4139745f0e 100755 --- a/tests/qemu-iotests/312 +++ b/tests/qemu-iotests/312 @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# group: rw quick # # Test drive-mirror with quorum # --=20 2.29.2 From nobody Thu May 2 15:02:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1610805049; cv=pass; d=zohomail.com; s=zohoarc; b=IcvSVffhgrjZ1YyNrw4pL/Wfw7kONJLtf/79PGWyUO0RGeB/OTZbVEai27ZQgsBRgUAkKn11D3DKnHbpn2XlTapXSz/shbYe1z8PpxO50MlNrvdUNobpm4iIEzL9yRzxZ1TrS2K4WWzIyl/TPwQaQRMXaVTjjTYKO7mkWi3LpXI= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610805049; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Coo2ZGUp+Iu/2xclmi0nchlvKaX9xRmg3BaPribk6U4=; b=jHMIFIZ5kSb8Q+PXpqTb+V8QnaXqlG/vv6Lr+IdjjZWjMPKgXlz5NgYQm2WlGTUlqh+dpfco3n0YkmCcppGI2Z/Jjv8quc8T6Ehr+JPPkd1D7Pj/mSQzcsmYRD53f8Gfe+KjcQ6Q9g5YeIsFePndrKeYOEKkQ7mUSriRTM2lYxs= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610805049958601.5229419737434; Sat, 16 Jan 2021 05:50:49 -0800 (PST) Received: from localhost ([::1]:45648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0lya-0000hH-LO for importer@patchew.org; Sat, 16 Jan 2021 08:50:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltG-0003Lr-7Z; Sat, 16 Jan 2021 08:45:18 -0500 Received: from mail-eopbgr60109.outbound.protection.outlook.com ([40.107.6.109]:49662 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltD-0007U8-1t; Sat, 16 Jan 2021 08:45:17 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM5PR0801MB2098.eurprd08.prod.outlook.com (2603:10a6:203:4a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Sat, 16 Jan 2021 13:45:08 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8%9]) with mapi id 15.20.3763.013; Sat, 16 Jan 2021 13:45:08 +0000 Received: from kvm.sw.ru (185.215.60.72) by AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.4 via Frontend Transport; Sat, 16 Jan 2021 13:45:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FY0EfBSTJeUgfJZFEtc1Alp9MnsHCGO5v7b1sUjMNqNXLHSynTMmtxZT6e36MK3dHsIJXvIJu1Hn4H/f6jEo3EWoBImLpXDc7emvNNoYnW0ylPC6PM6dONF2IIL9/ZSXVddgaRRIZqLdUl1wtPuUOMP8V2htVlXmAlx2kDPfujfKwqPpsNi8Jpoco/wpIjdCePY8K7RPZni5uTuffdvfsXWCjHoE/6sJmghaWgLE3w+Jk3l5gtQr7qkfEQPksvVQDiAckih2b2OSg9mkwUbQf+3TMGWqQWmnjME7Nhev1hXkbk09yFxrcC7hG0m+2l+KxVAM/PHmsS0ODCF6g+3yHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Coo2ZGUp+Iu/2xclmi0nchlvKaX9xRmg3BaPribk6U4=; b=GaWLpZ+L8XhSnzf0JTujtFJoYyjUpw+DxolyuO4KtbI8L/B0aAPVJN1+eyL1NyrKKOwZzxYQoH4EaNfhK5Rw/lkOuRzuWQLqnhuHT87lZ94LxrxBytNodoInYSuS6zqm+/57rjMSnAgONuFOIbZ8A3VFMmUXKRN/0sPpQJ3kTzE+1MetvpA940HgC3s8OL1yag2Df9Vjiy+u74wMq6tUKy2TqJsHbX0Q4XoKJVduxEGT0CgN7ojnLxYN3wUOVLIzabHPtZfNwcjXpUTemkCWBZcS0Ho3rCAT0Fs9Pa8oCIm/k+CH5v+4aWJ3VTmlsWTGLF2c0bUZI+QNIGDnq8x/vw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Coo2ZGUp+Iu/2xclmi0nchlvKaX9xRmg3BaPribk6U4=; b=vAKmiyJ/2oy+oCEypZ7KnXQYJWPLYt5uszftPWtq/8SE5PjquAXPyAb/dNkeZJLHSjuMQ7Kt4Qj3fH+i0ikfrt+Iur/Imv6MoHarywo0hlg5l4L31HMyNZdazsiU+MOaeD9qtMzx2mh10K4wGpP8Dj9SNoXEVDOFj6j2iw03M4g= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Subject: [PATCH v7 07/11] iotests: add findtests.py Date: Sat, 16 Jan 2021 16:44:20 +0300 Message-Id: <20210116134424.82867-8-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210116134424.82867-1-vsementsov@virtuozzo.com> References: <20210116134424.82867-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.72] X-ClientProxiedBy: AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 90ac79d3-0f2b-42cc-49d2-08d8ba24ef9c X-MS-TrafficTypeDiagnostic: AM5PR0801MB2098: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fwEcMYWWh+OBXxTQ9bRt1Sr7iHZTDwzHb70vhjljDBQ039XikpVK2n7s+09/wchOHGoT10ABjqQppXf8wEz1VTSozVRo9Oobo38cMAHhTf/6t3xGo8MOMLcoS+V17SstWA34qG9jNuk9SihUHyC4YaXQQSNwUp9Oy/8okemUhdwfekQOYKVihaaPX7bqwiShKwmlki5QHjKlkAciwG4OJb/1cPH4bjrHtsGYUtrPPh4udNG+3BgBe0ZAhG2XNTPFT5meq+uPnl0Ai+cPu2MDyjn3gFulUppFscfsk6LQQfO+4Dsgg0xAe8Aa9llmw+sdxNWFTBlfhW5rWZOEs4BVGwtlXmplodVGeDvzY92oa3YZadRHoOJMWlmBpTZ88dAWn4HGfRn3kHZqWbDbrmjlA2ZtVViJurD4LlgHoR9FE4rstpx4HppaFKUM5Z35F9ubi6ltaNbWI/Hhxi3z396gU0SBGF6oZ+OSzjpqn09oEMO8okkfkwfUjR3CVDCKPxuIieAexWMZeAsXYAJGas3O2kS/hlRX+t66a/EP08tEZymnN+QG9Hx7IBY/b+t5CCNgzDmUb5rl/Wbxb/d/m1twphpT67zQoqQ+Nwcuf60gVkpJRErHeSIm0npK36LVbB0G6z+c2OxB7MADgN9yRx00QQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(366004)(376002)(346002)(39830400003)(6916009)(36756003)(83380400001)(66946007)(6666004)(6512007)(86362001)(1076003)(66556008)(5660300002)(6486002)(66476007)(6506007)(478600001)(4326008)(8676002)(8936002)(956004)(2906002)(52116002)(186003)(16526019)(316002)(26005)(2616005)(2004002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?Kqj9sZ6Vjf67suBGeXftsYvUill8pj/fidi4VFLUM87rnOtNA3UXBllpd6Ot?= =?us-ascii?Q?34Bi+q5YEFU515hDXiI/5J9bGmPqGaq+9akPc93IKewfdaiTBH+L6vLlTTNk?= =?us-ascii?Q?gZWzVU5XzioF9OL0k14XLRphW2yHLcbKqiDxAIZVHkE14E7OURohN09gJ4ib?= =?us-ascii?Q?66WGv0ZRBU7dGiyZsHweSZOHixdvvHxU0WEgHPJhqD2khknbyzQ6/lPTP5I1?= =?us-ascii?Q?nC0PxFf/NBXu8CRWygKHgMixg5FE62bQ+GsziBpU+TLpAZi+gKoJKFrE8g5/?= =?us-ascii?Q?QgSQVrvtB3J2lUy8pF6pyCkj7bc1MqI6W3DY85yUp/4ufNX7sfZtdmbgmqTQ?= =?us-ascii?Q?9H57nyqjceVv0aT/XH01STYjuYQnO8GQvBVDGWFe4UxsQa3GqQCoPHDfkY69?= =?us-ascii?Q?r1Unvw5XVpc0EHaUpWsOhYeFD03qVCJgkfO1tbgsUnSw5DoCWDvFp6wEasH1?= =?us-ascii?Q?sxsZqPBnMFoZ6TadGItGBhqCBNs0CwKrx3mEYSCyvQlNdhMbXQ1+cQYodzM+?= =?us-ascii?Q?cKRa8Xg/0Wxmulta3rP0rJjjy3sfUO4rX8hXxn1VdhgNzfEBFq90GvPdvNpy?= =?us-ascii?Q?N/7IrqDX8v+p8AsR4OIJoZJ88VdgFxAr5Pn658QMPMlCVXuKJJ2IOpTuSvfe?= =?us-ascii?Q?UbqKGLdj+NoXDLt2hzZaFAH841PtDxd9a7PGeFxPrxerxkR0EnBcHdi/JVRK?= =?us-ascii?Q?5iQ/gidSa8kPoYc6+pqLWM6KLzu0x7tn3pvVTjDj7umdlMuGGh5gN/ePcbrh?= =?us-ascii?Q?yufkuqHUkKJYHWLAmxSSHB8ODZ6HrSvrxjEXpKXFI6hqko1HsebUviX406se?= =?us-ascii?Q?lpFrbE0r7UvmJ+qrh6KEIkN+ZGbGEOWLWtttMwOcmGq6GiZw+N2gY45HwgHD?= =?us-ascii?Q?mRf0s9H9EuZF29e6E1Mkyd8oXJ1QxjIdi9bM7ZskJGBTjdrGnMR+GlP/l39S?= =?us-ascii?Q?+jTWsNbYf5ybv9eEBMewlLQ0YnzPKbyFUjwk1iALIDXgcqhCtt/1IlBBtTiZ?= =?us-ascii?Q?/7vy?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90ac79d3-0f2b-42cc-49d2-08d8ba24ef9c X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2021 13:45:08.2366 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: has1HimhAQ83p1li/auzyaBhve4yT322b1KbZN01dBstSUGyuopgVmzQU5RXyE+z/r5kM4YrJzR8JnWaMB2eY6gJQ6zwdYzqLtz0xNakXXA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2098 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.6.109; envelope-from=vsementsov@virtuozzo.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" Add python script with new logic of searching for tests: Current ./check behavior: - tests are named [0-9][0-9][0-9] - tests must be registered in group file (even if test doesn't belong to any group, like 142) Behavior of findtests.py: - group file is dropped - tests are all files in tests/ subdirectory (except for .out files), so it's not needed more to "register the test", just create it with appropriate name in tests/ subdirectory. Old names like [0-9][0-9][0-9] (in root iotests directory) are supported too, but not recommended for new tests - groups are parsed from '# group: ' line inside test files - optional file group.local may be used to define some additional groups for downstreams - 'disabled' group is used to temporary disable tests. So instead of commenting tests in old 'group' file you now can add them to disabled group with help of 'group.local' file - selecting test ranges like 5-15 are not supported more (to support restarting failed ./check command from the middle of the process, new argument is added: --start-from) Benefits: - no rebase conflicts in group file on patch porting from branch to branch - no conflicts in upstream, when different series want to occupy same test number - meaningful names for test files For example, with digital number, when some person wants to add some test about block-stream, he most probably will just create a new test. But if there would be test-block-stream test already, he will at first look at it and may be just add a test-case into it. And anyway meaningful names are better. This commit don't update check behavior (which will be done in further commit), still, the documentation changed like new behavior is already here. Let's live with this small inconsistency for the following few commits, until final change. The file findtests.py is self-executable and may be used for debugging purposes. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake --- docs/devel/testing.rst | 50 +++++++++- tests/qemu-iotests/findtests.py | 159 ++++++++++++++++++++++++++++++++ 2 files changed, 208 insertions(+), 1 deletion(-) create mode 100644 tests/qemu-iotests/findtests.py diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index 0aa7a13bba..454b706141 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -111,7 +111,7 @@ check-block ----------- =20 ``make check-block`` runs a subset of the block layer iotests (the tests t= hat -are in the "auto" group in ``tests/qemu-iotests/group``). +are in the "auto" group). See the "QEMU iotests" section below for more information. =20 GCC gcov support @@ -224,6 +224,54 @@ another application on the host may have locked the fi= le, possibly leading to a test failure. If using such devices are explicitly desired, consider addi= ng ``locking=3Doff`` option to disable image locking. =20 +Test case groups +---------------- + +"Tests may belong to one or more test groups, which are defined in the form +of a comment in the test source file. By convention, test groups are listed +in the second line of the test file, after the "#!/..." line, like this: + +.. code:: + + #!/usr/bin/env python3 + # group: auto quick + # + ... + +Another way of defining groups is creating the tests/qemu-iotests/group.lo= cal +file. This should be used only for downstream (this file should never appe= ar +in upstream). This file may be used for defining some downstream test grou= ps +or for temporarily disabling tests, like this: + +.. code:: + + # groups for some company downstream process + # + # ci - tests to run on build + # down - our downstream tests, not for upstream + # + # Format of each line is: + # TEST_NAME TEST_GROUP [TEST_GROUP ]... + + 013 ci + 210 disabled + 215 disabled + our-ugly-workaround-test down ci + +Note that the following group names have a special meaning: + +- quick: Tests in this group should finish within a few seconds. + +- auto: Tests in this group are used during "make check" and should be + runnable in any case. That means they should run with every QEMU binary + (also non-x86), with every QEMU configuration (i.e. must not fail if + an optional feature is not compiled in - but reporting a "skip" is ok), + work at least with the qcow2 file format, work with all kind of host + filesystems and users (e.g. "nobody" or "root") and must not take too + much memory and disk space (since CI pipelines tend to fail otherwise). + +- disabled: Tests in this group are disabled and ignored by check. + .. _docker-ref: =20 Docker based tests diff --git a/tests/qemu-iotests/findtests.py b/tests/qemu-iotests/findtests= .py new file mode 100644 index 0000000000..065ec13125 --- /dev/null +++ b/tests/qemu-iotests/findtests.py @@ -0,0 +1,159 @@ +# TestFinder class, define set of tests to run. +# +# Copyright (c) 2020-2021 Virtuozzo International GmbH +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +import os +import glob +import re +from collections import defaultdict +from contextlib import contextmanager +from typing import Optional, List, Iterator, Set + + +@contextmanager +def chdir(path: Optional[str] =3D None) -> Iterator[None]: + if path is None: + yield + return + + saved_dir =3D os.getcwd() + os.chdir(path) + try: + yield + finally: + os.chdir(saved_dir) + + +class TestFinder: + def __init__(self, test_dir: Optional[str] =3D None) -> None: + self.groups =3D defaultdict(set) + + with chdir(test_dir): + self.all_tests =3D glob.glob('[0-9][0-9][0-9]') + self.all_tests +=3D [f for f in glob.iglob('tests/*') + if not f.endswith('.out') and + os.path.isfile(f + '.out')] + + for t in self.all_tests: + with open(t) as f: + for line in f: + if line.startswith('# group: '): + for g in line.split()[2:]: + self.groups[g].add(t) + break + + def add_group_file(self, fname: str) -> None: + with open(fname) as f: + for line in f: + line =3D line.strip() + + if (not line) or line[0] =3D=3D '#': + continue + + words =3D line.split() + test_file =3D self.parse_test_name(words[0]) + groups =3D words[1:] + + for g in groups: + self.groups[g].add(test_file) + + def parse_test_name(self, name: str) -> str: + if '/' in name: + raise ValueError('Paths are unsupported for test selecting, ' + f'requiring "{name}" is wrong') + + if re.fullmatch(r'\d+', name): + # Numbered tests are old naming convetion. We should convert t= hem + # to three-digit-length, like 1 --> 001. + name =3D f'{int(name):03}' + else: + # Named tests all should be in tests/ subdirectory + name =3D os.path.join('tests', name) + + if name not in self.all_tests: + raise ValueError(f'Test "{name}" is not found') + + return name + + def find_tests(self, groups: Optional[List[str]] =3D None, + exclude_groups: Optional[List[str]] =3D None, + tests: Optional[List[str]] =3D None, + start_from: Optional[str] =3D None) -> List[str]: + """Find tests + + Algorithm: + + 1. a. if some @groups specified + a.1 Take all tests from @groups + a.2 Drop tests, which are in at least one of @exclude_groups = or in + 'disabled' group (if 'disabled' is not listed in @groups) + a.3 Add tests from @tests (don't exclude anything from them) + + b. else, if some @tests specified: + b.1 exclude_groups must be not specified, so just take @tests + + c. else (only @exclude_groups list is non-empty): + c.1 Take all tests + c.2 Drop tests, which are in at least one of @exclude_groups = or in + 'disabled' group + + 2. sort + + 3. If start_from specified, drop tests from first one to @start_fr= om + (not inclusive) + """ + if groups is None: + groups =3D [] + if exclude_groups is None: + exclude_groups =3D [] + if tests is None: + tests =3D [] + + res: Set[str] =3D set() + if groups: + # Some groups specified. exclude_groups supported, additionally + # selecting some individual tests supported as well. + res.update(*(self.groups[g] for g in groups)) + elif tests: + # Some individual tests specified, but no groups. In this case + # we don't support exclude_groups. + if exclude_groups: + raise ValueError("Can't exclude from individually specifie= d " + "tests.") + else: + # No tests no groups: start from all tests, exclude_groups + # supported. + res.update(self.all_tests) + + if 'disabled' not in groups and 'disabled' not in exclude_groups: + # Don't want to modify function argument, so create new list. + exclude_groups =3D exclude_groups + ['disabled'] + + res =3D res.difference(*(self.groups[g] for g in exclude_groups)) + + # We want to add @tests. But for compatibility with old test names, + # we should convert any number < 100 to number padded by + # leading zeroes, like 1 -> 001 and 23 -> 023. + for t in tests: + res.add(self.parse_test_name(t)) + + sequence =3D sorted(res) + + if start_from is not None: + del sequence[:sequence.index(self.parse_test_name(start_from))] + + return sequence --=20 2.29.2 From nobody Thu May 2 15:02:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1610805084; cv=pass; d=zohomail.com; s=zohoarc; b=lmGzQD8V+G0sB04jw0eOMo2bPvcnM1ONCrdR9zYs/1qGNOeOSj8SnsP1ZIrXoUL2KjSRh5RzByYyUbPc/KiwXYkrp7KbtZ8rUJ58Rv0DRcApBbSDTFZLNQ+s62tsTYl+RZqMBzKDdJMEy64HFzGNrE8TbOMpe5qU5OrtnTwadrA= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610805084; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=JObIUl9NczEQZDbdmDooA/RBDAj+ThhLsNDPHU4wjwk=; b=j7Fge5zwZakQhNvGbZBa32KsVFYMOrgmoUoom8qFwPnLYOTJznzWd4WE+gNL3FDQY37v5HLoVUwk+7Hgw7dUYr3D6NM7N1kpwpUOSmE1Dct65iTDha2zfwcZrXF4YQAEh7cD7rHrh2cghTIrdkaWzmiSHjtlGPd5poe3wPKKzWw= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610805084866409.5560879360686; Sat, 16 Jan 2021 05:51:24 -0800 (PST) Received: from localhost ([::1]:46418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0lz9-00013x-Hd for importer@patchew.org; Sat, 16 Jan 2021 08:51:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltH-0003OX-68; Sat, 16 Jan 2021 08:45:19 -0500 Received: from mail-db8eur05on2123.outbound.protection.outlook.com ([40.107.20.123]:62560 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltE-0007XP-Iz; Sat, 16 Jan 2021 08:45:18 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM5PR0801MB2098.eurprd08.prod.outlook.com (2603:10a6:203:4a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Sat, 16 Jan 2021 13:45:09 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8%9]) with mapi id 15.20.3763.013; Sat, 16 Jan 2021 13:45:09 +0000 Received: from kvm.sw.ru (185.215.60.72) by AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.4 via Frontend Transport; Sat, 16 Jan 2021 13:45:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k27/CqK2X7ulQ/Iy/rxuMbeDGuKDZn67PY6uCKsY73xqFIpwA4B2jGWC/2BMfDeZs/ByDpGRNzYFzFKT27mi7ih2jhsw37yovIZtjENsHGMIP6KNuaGoSq14r8Nn8ZqPDXt02o91NQq0rdu4VzNZohYyxYisALMaJIIoc6lotuwsCYzj2rQgeubEFcgh3BhSquWAONZRq7yxkT4dpFECA/wOHNTI5UMZTdTHshwojMLfUfP2qnkBI2001ZviIkeaTSEvHIAnx/sIe8pX9uOiVu/hFmudIWKANquMa2x8jyRySkozHpAwVcS1mptY77r9ghdnomQ9Xq1NOVEc4OKS3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JObIUl9NczEQZDbdmDooA/RBDAj+ThhLsNDPHU4wjwk=; b=GGCSo/4jDuu0cRWtKYPAuHRv1gqH7TiV0A2YlaOfYLPaIKztKaNmT/6aUl3yNnYkdKLof0jh8Q8qDP2P3f8LNsIGI5IGHmB8X+UR+T+LQCxBGUIkwUHvxSy+ZK/zI4Lj0z37e+sXcZaDY1dZbwcmffdllaZhq6apqDEJyRXxIf53xFihaHQIPFs286ivLN2j5egwKCWS6/M2yeZa+pzi4bSOS8sal9P5F9nv/JLwDhHKkbGu0ddeFFgiKBiqdVoi5cbh+F4Gs7i0RAhIYrFJp47pB2oWtSf9J9/xwJcRqsoX1JMIyGeopVImZLnNVMxake2HQfA1uDNeXkoS7KcNJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JObIUl9NczEQZDbdmDooA/RBDAj+ThhLsNDPHU4wjwk=; b=M69UWqV0oZhBgt7Rd/Pa8/ijZZYBeNc9ahEAEz8FLXD/wCa/6vvoonVsoNPtmUridb69FKp2y/JCC97ot6ftmBMIHdqcYstOzA89635FiYR0uMvkMVKItw2vnQFRKNc02cy1MH09VRuA1I4k92LPh6tkp+etflCjIwNOm0vePv8= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Subject: [PATCH v7 08/11] iotests: add testenv.py Date: Sat, 16 Jan 2021 16:44:21 +0300 Message-Id: <20210116134424.82867-9-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210116134424.82867-1-vsementsov@virtuozzo.com> References: <20210116134424.82867-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.72] X-ClientProxiedBy: AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 73d0b759-0338-4716-772d-08d8ba24f09f X-MS-TrafficTypeDiagnostic: AM5PR0801MB2098: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YTbjqP7j25WfwBwl6krGYEa+rsCsVz/ObW2V0lPL3zXDgVbsOhxUTZaBEAt2CMceZH4eLWZKtr1SvGOdtMP6Ij6X9NaZQ8m2foB785w1aLrie4LKH1F7bF2IsNjoSsVLFJT45KrJqRJUvCQ4WGiEI/yjwgdWbxJDvhLpC7A7IDLOq+wiI8UaVdy4bEONbQcYjvLMOX9/6qoBIaFRT3gbL7aeEocKFRzNJkarYDEJNr9wreZvYEnaLEm9kjtVXnzseKupLurltQXI50caaLhtpIZpb22Tnx7n4bEHtu9yESYQT47KuSDHBkNcSXb3yxsNPc+zKjhF73+ziYUo4ntwvYqeLwDQrAoYgZmmBEyYnBubaRVhU765ITiZc+E3d+lAwrgKSTsWhJXhHr0SYMtda191BDxDMy8td+/nFNOkBVhpP9UzGFHpi7RhvHPv2PxwFeeKsTA5RJQ8veIm9WnaFQ/g4FKqvZSfK1UJaNAK10YCdabI3kEUP2ohq/VxEPwTWoFbsF4yZytSu04AsO1r59p4Vrf2H239ECPri2HM6GNBoiWD5iTN9OFO767CKvWfe2ZFux2rGgeIxphZDK3JzVs+x5D8KWamnqbLJTv5Ou6lkBjUPZscP7DeT17AB1gtNRSY6kUoEoP7FJXlYpq5dQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(366004)(376002)(346002)(39830400003)(6916009)(36756003)(83380400001)(66946007)(6666004)(6512007)(86362001)(1076003)(66556008)(5660300002)(6486002)(66476007)(6506007)(478600001)(4326008)(8676002)(8936002)(956004)(2906002)(52116002)(186003)(16526019)(316002)(26005)(2616005)(2004002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?D5SAS8FC+lY+fsI+FHOmTGKXFZyQvQzisJ1+BhkxiXum/egM1i07dPTNof9I?= =?us-ascii?Q?/umzzOmrL/tItCQ3I6naJKx256Fubn+8MEjP/6zj58TjsjgZzActONOAdPmB?= =?us-ascii?Q?4xrjY0v1GW9d5G8KcqoJHIl/UTTcBsMXwNNzbHJDd7w0MHnpvTHdPfm4d2bq?= =?us-ascii?Q?FHN3oYwADBqnPOX3j8ifWQ44l/o4HabRb1YXUeJT+Ee0EOjLeuBAkrAYXY2o?= =?us-ascii?Q?LS5K1DKjJo3F1/Vj15GKzMbe3BrLi9OmGI7oNR6dZK+C+HvH4eZpJjWda7ag?= =?us-ascii?Q?cWzSYoWDHmLCZUHRjp5HJ6tjt2+teswbjCbflvgO3+A4x3D0uLsHxNApVK2U?= =?us-ascii?Q?DHOTgT7RaxrP/gEbnYYKLIAWmZajPLGzkzU5Kc+xjY3tkZqObWJmbIpp80Cu?= =?us-ascii?Q?013Hy6/wNG3/h4Z3CC6/Yw9a1K+tLmDbeeGxYwSascDiW2sYjrGRLLSEk+3d?= =?us-ascii?Q?c7DnIwCCXKXHsdBpKqe5AC15sYU9WWOmjR1raPb7pkq5Hta+/bq4z6rRjXit?= =?us-ascii?Q?GRU3ieYAtS5IKt3rhVU6gdWFn4yY/TknW7fM3ybOWJOsfC1javeH5KbeglP1?= =?us-ascii?Q?R40GXpQPhXTYrBPRxJDeEi9wCs8Q4Xam8M4q+WWL/FFKS8poSVdF5c3AmN3Z?= =?us-ascii?Q?MbcO2WEoA0c1q/ZrVKQdKR7H2X6BEs/A2gIZ5acLW7JiDgN60ZL+A2CmpMxo?= =?us-ascii?Q?ug7Ukrgg4p/HckjHigFvDB0kWVIIVTuRjF8kSPQBrMmmaqI3HmZph2nYXQjL?= =?us-ascii?Q?w0UN448jw1SRr0hk5eaoAmQETbJVTTgJNfybXxYMBx37bDjxkiw5LILNiVQQ?= =?us-ascii?Q?jQMVPbStb7BxBaVXgNZLc/pPt4pOKzYHJ7Ozu1h1ODSeH4efI3cGPxuzaGO4?= =?us-ascii?Q?BZHFRYh+IrQ9ucz2r/Uf1aV6G3R1XlqejldBNxmk0MU4lsAa/spKlvQ+XSMl?= =?us-ascii?Q?K8utl7s8E+mzjMFUiQWB7VxE1B8auwild6DN5gUoDCF1XzHoyweh9Ha6ak+6?= =?us-ascii?Q?/Ocw?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73d0b759-0338-4716-772d-08d8ba24f09f X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2021 13:45:09.2880 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1CeUvRo4TKoW7EiblQy5WSqbcew6K27lBLJQSvCO9VTUK4ZJCZ9ARNZzI4AsfO0abZk50jFc/K8s+YJewkorBbW7UN2AzF/gTKbLDIkwcQo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2098 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.20.123; envelope-from=vsementsov@virtuozzo.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" Add TestEnv class, which will handle test environment in a new python iotests running framework. Difference with current ./check interface: - -v (verbose) option dropped, as it is unused - -xdiff option is dropped, until somebody complains that it is needed - same for -n option - same for looking for binaries in $build_iotests directory. Signed-off-by: Vladimir Sementsov-Ogievskiy Tested-by: Eric Blake --- tests/qemu-iotests/testenv.py | 255 ++++++++++++++++++++++++++++++++++ 1 file changed, 255 insertions(+) create mode 100644 tests/qemu-iotests/testenv.py diff --git a/tests/qemu-iotests/testenv.py b/tests/qemu-iotests/testenv.py new file mode 100644 index 0000000000..0fe5076088 --- /dev/null +++ b/tests/qemu-iotests/testenv.py @@ -0,0 +1,255 @@ +# TestEnv class to manage test environment variables. +# +# Copyright (c) 2020-2021 Virtuozzo International GmbH +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +import os +import sys +import tempfile +from pathlib import Path +import shutil +import collections +import subprocess +from contextlib import AbstractContextManager +from typing import Dict, Any, Optional + + +def get_default_machine(qemu_prog: str) -> str: + outp =3D subprocess.run([qemu_prog, '-machine', 'help'], check=3DTrue, + text=3DTrue, stdout=3Dsubprocess.PIPE).stdout + + machines =3D outp.split('\n') + default_machine =3D next(m for m in machines if m.endswith(' (default)= ')) + default_machine =3D default_machine.split(' ', 1)[0] + + alias_suf =3D ' (alias of {})'.format(default_machine) + alias =3D next((m for m in machines if m.endswith(alias_suf)), None) + if alias is not None: + default_machine =3D alias.split(' ', 1)[0] + + return default_machine + + +class TestEnv(AbstractContextManager['TestEnv']): + """ + Manage system environment for running tests + + The following variables are supported/provided. They are represented by + lower-cased TestEnv attributes. + """ + + # We store environment variables as instance attributes, and there are= a + # lot of them. Silence pylint: + # pylint: disable=3Dtoo-many-instance-attributes + + env_variables =3D ['PYTHONPATH', 'TEST_DIR', 'SOCK_DIR', 'SAMPLE_IMG_D= IR', + 'OUTPUT_DIR', 'PYTHON', 'QEMU_PROG', 'QEMU_IMG_PROG', + 'QEMU_IO_PROG', 'QEMU_NBD_PROG', 'QSD_PROG', + 'SOCKET_SCM_HELPER', 'QEMU_OPTIONS', 'QEMU_IMG_OPTION= S', + 'QEMU_IO_OPTIONS', 'QEMU_NBD_OPTIONS', 'IMGOPTS', + 'IMGFMT', 'IMGPROTO', 'AIOMODE', 'CACHEMODE', + 'VALGRIND_QEMU', 'CACHEMODE_IS_DEFAULT', 'IMGFMT_GENE= RIC', + 'IMGOPTSSYNTAX', 'IMGKEYSECRET', 'QEMU_DEFAULT_MACHIN= E'] + + def get_env(self) -> Dict[str, str]: + env =3D {} + for v in self.env_variables: + val =3D getattr(self, v.lower(), None) + if val is not None: + env[v] =3D val + + return env + + def init_directories(self): + """Init directory variables: + PYTHONPATH + TEST_DIR + SOCK_DIR + SAMPLE_IMG_DIR + OUTPUT_DIR + """ + self.pythonpath =3D os.getenv('PYTHONPATH') + if self.pythonpath: + self.pythonpath =3D self.source_iotests + os.pathsep + \ + self.pythonpath + else: + self.pythonpath =3D self.source_iotests + + self.test_dir =3D os.getenv('TEST_DIR', + os.path.join(os.getcwd(), 'scratch')) + Path(self.test_dir).mkdir(parents=3DTrue, exist_ok=3DTrue) + + self.sock_dir =3D os.getenv('SOCK_DIR') + self.tmp_sock_dir =3D False + if self.sock_dir: + Path(self.test_dir).mkdir(parents=3DTrue, exist_ok=3DTrue) + else: + self.sock_dir =3D tempfile.mkdtemp() + self.tmp_sock_dir =3D True + + self.sample_img_dir =3D os.getenv('SAMPLE_IMG_DIR', + os.path.join(self.source_iotests, + 'sample_images')) + + self.output_dir =3D os.getcwd() # OUTPUT_DIR + + def init_binaries(self): + """Init binary path variables: + PYTHON (for bash tests) + QEMU_PROG, QEMU_IMG_PROG, QEMU_IO_PROG, QEMU_NBD_PROG, QSD_PR= OG + SOCKET_SCM_HELPER + """ + self.python =3D sys.executable + + def root(*names): + return os.path.join(self.build_root, *names) + + arch =3D os.uname().machine + if 'ppc64' in arch: + arch =3D 'ppc64' + + self.qemu_prog =3D os.getenv('QEMU_PROG', root(f'qemu-system-{arch= }')) + self.qemu_img_prog =3D os.getenv('QEMU_IMG_PROG', root('qemu-img')) + self.qemu_io_prog =3D os.getenv('QEMU_IO_PROG', root('qemu-io')) + self.qemu_nbd_prog =3D os.getenv('QEMU_NBD_PROG', root('qemu-nbd')) + self.qsd_prog =3D os.getenv('QSD_PROG', root('storage-daemon', + 'qemu-storage-daemon')) + + for b in [self.qemu_img_prog, self.qemu_io_prog, self.qemu_nbd_pro= g, + self.qemu_prog, self.qsd_prog]: + if not os.path.exists(b): + sys.exit('Not such file: ' + b) + if not os.access(b, os.X_OK): + sys.exit('Not executable: ' + b) + + helper_path =3D os.path.join(self.build_iotests, 'socket_scm_helpe= r') + if os.access(helper_path, os.X_OK): + self.socket_scm_helper =3D helper_path # SOCKET_SCM_HELPER + + def __init__(self, imgfmt: str, imgproto: str, aiomode: str, + cachemode: Optional[str] =3D None, + imgopts: Optional[str] =3D None, + misalign: bool =3D False, + debug: bool =3D False) -> None: + self.imgfmt =3D imgfmt + self.imgproto =3D imgproto + self.aiomode =3D aiomode + self.imgopts =3D imgopts + self.misalign =3D misalign + self.debug =3D debug + + if cachemode is None: + self.cachemode_is_default =3D 'true' + self.cachemode =3D 'writeback' + else: + self.cachemode_is_default =3D 'false' + self.cachemode =3D cachemode + + # Initialize generic paths: build_root, build_iotests, source_iote= sts, + # which are needed to initialize some environment variables. They = are + # used by init_*() functions as well. + + if os.path.islink(sys.argv[0]): + # called from the build tree + self.source_iotests =3D os.path.dirname(os.readlink(sys.argv[0= ])) + self.build_iotests =3D os.path.dirname(os.path.abspath(sys.arg= v[0])) + else: + # called from the source tree + self.source_iotests =3D os.getcwd() + self.build_iotests =3D self.source_iotests + + self.build_root =3D os.path.join(self.build_iotests, '..', '..') + + self.init_directories() + self.init_binaries() + + # QEMU_OPTIONS + self.qemu_options =3D '-nodefaults -display none -accel qtest' + machine_map =3D ( + ('arm', 'virt'), + ('aarch64', 'virt'), + ('avr', 'mega2560'), + ('rx', 'gdbsim-r5f562n8'), + ('tricore', 'tricore_testboard') + ) + for suffix, machine in machine_map: + if self.qemu_prog.endswith(f'qemu-system-{suffix}'): + self.qemu_options +=3D f' -machine {machine}' + + # QEMU_DEFAULT_MACHINE + self.qemu_default_machine =3D get_default_machine(self.qemu_prog) + + self.qemu_img_options =3D os.getenv('QEMU_IMG_OPTIONS') + self.qemu_nbd_options =3D os.getenv('QEMU_NBD_OPTIONS') + + is_generic =3D self.imgfmt not in ['bochs', 'cloop', 'dmg'] + self.imgfmt_generic =3D 'true' if is_generic else 'false' + + self.qemu_io_options =3D f'--cache {self.cachemode} --aio {self.ai= omode}' + if self.misalign: + self.qemu_io_options +=3D ' --misalign' + + self.qemu_io_options_no_fmt =3D self.qemu_io_options + + if self.imgfmt =3D=3D 'luks': + self.imgoptssyntax =3D 'true' + self.imgkeysecret =3D '123456' + if not self.imgopts: + self.imgopts =3D 'iter-time=3D10' + elif 'iter-time=3D' not in self.imgopts: + self.imgopts +=3D ',iter-time=3D10' + else: + self.imgoptssyntax =3D 'false' + self.qemu_io_options +=3D ' -f ' + self.imgfmt + + if self.imgfmt =3D=3D 'vmkd': + if not self.imgopts: + self.imgopts =3D 'zeroed_grain=3Don' + elif 'zeroed_grain=3D' not in self.imgopts: + self.imgopts +=3D ',zeroed_grain=3Don' + + def close(self) -> None: + if self.tmp_sock_dir: + shutil.rmtree(self.sock_dir) + + def __enter__(self) -> 'TestEnv': + return self + + def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> N= one: + self.close() + + def print_env(self) -> None: + template =3D """\ +QEMU -- "{QEMU_PROG}" {QEMU_OPTIONS} +QEMU_IMG -- "{QEMU_IMG_PROG}" {QEMU_IMG_OPTIONS} +QEMU_IO -- "{QEMU_IO_PROG}" {QEMU_IO_OPTIONS} +QEMU_NBD -- "{QEMU_NBD_PROG}" {QEMU_NBD_OPTIONS} +IMGFMT -- {IMGFMT}{imgopts} +IMGPROTO -- {IMGPROTO} +PLATFORM -- {platform} +TEST_DIR -- {TEST_DIR} +SOCK_DIR -- {SOCK_DIR} +SOCKET_SCM_HELPER -- {SOCKET_SCM_HELPER}""" + + args =3D collections.defaultdict(str, self.get_env()) + + if 'IMGOPTS' in args: + args['imgopts'] =3D f" ({args['IMGOPTS']})" + + u =3D os.uname() + args['platform'] =3D f'{u.sysname}/{u.machine} {u.nodename} {u.rel= ease}' + + print(template.format_map(args)) --=20 2.29.2 From nobody Thu May 2 15:02:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1610805440; cv=pass; d=zohomail.com; s=zohoarc; b=PSuOR/ch4JfzWO5E4zBzBqG6U7jiH2Sy88pT5g79x3uzvdhZCv/1z4KMo/HpWCloOoCcYmE25kKAXFrHhdpayZ84yP+MB/ParFTZ1i73B6KzrHsx126AsDI3GaJx18kRyBLQNHAbVG0JAubL2PJ274YPJhb7eCSYDx92RPd+Oyg= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610805440; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=j9Q71Gx/heEzWm83K6Uvx1xmDV/7EYYn1GKFqpbO8OE=; b=XcSltXKI865cgd6Z0PucE/DgH6u61Xlf5+6d+i+Bymg3EeQaCuGxGigUC4fQLdckrX3MKbUtO+5EeEf4OTTTbGyTDmuz9oX9mnXJdg9JH8u/ZEe2pSXVvcJQrE3wRHNl/4y/0P9Y12gNvrGtPlmbyATiqdTHOTV01A5UlW9K/LY= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610805440610425.0049796722848; Sat, 16 Jan 2021 05:57:20 -0800 (PST) Received: from localhost ([::1]:57926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0m4t-00064C-BS for importer@patchew.org; Sat, 16 Jan 2021 08:57:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltJ-0003UR-Gv; Sat, 16 Jan 2021 08:45:21 -0500 Received: from mail-eopbgr60109.outbound.protection.outlook.com ([40.107.6.109]:49662 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltG-0007U8-SV; Sat, 16 Jan 2021 08:45:21 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM5PR0801MB2098.eurprd08.prod.outlook.com (2603:10a6:203:4a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Sat, 16 Jan 2021 13:45:10 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8%9]) with mapi id 15.20.3763.013; Sat, 16 Jan 2021 13:45:10 +0000 Received: from kvm.sw.ru (185.215.60.72) by AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.4 via Frontend Transport; Sat, 16 Jan 2021 13:45:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A2h2Hf+qo5jgvB2NReugRrcR8ySn5uOCJSW/9rE+OrCzRc1BdmMKKLMkjpMhikIrjZbHRXsRwACGYUS5/8juM8vWkUdTimv4K8RFnxijTyW4LiBcB9aO4WU2OcMZYujSlxHcmq/BYfgXWO5SNlqvuU5n9vFc/gk6+RREUMHN9C63kl5xycR5SYMwkbe6Ot+xLCwFfP/ybNgBDmZe4Pv1uUjDFd9hLcrKbMYhf/yG50PD1N+Cmz2PxgxZsARDHvsNrkM/sFCFAC9UEf2fnQ95ZLwSXWrXXGsTGzGjHWmXkmLsMAFevDFmnPNO4o5tvj/UD7C6b6TqYBP5n80Y/QLjSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j9Q71Gx/heEzWm83K6Uvx1xmDV/7EYYn1GKFqpbO8OE=; b=dlkHvD/Ltx48Zb0NRFmws4gRi5O43KtMcbxiPEKB28O4fy8qrVi+3rfUiyOL72Xx/WsfHXnEJjoue2iZLjXScxVF9rGm587KcJ7J/Gy0pOZhQ5lEGug4I3O+mfoGQ8N70WXl+CtPxsTBo0C5R8buEJsQVQbqjGkp+NXQ1UJ4Eddu8dPdPNc0SG1YD3H5TqQfBIM+f/ra7bc9SwV+CBLeFDAjvVq1dMRN1RkCwnYBmNTJ5aJwK4X73o71qomMN80DJ58raHdlw170gqFzKNcdpU8xhQvW82hVbdvEtfLv7h1jDPlnkDYUKk62ZrcM2UpCwkDAX6A+hxucs/mXBZoh4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j9Q71Gx/heEzWm83K6Uvx1xmDV/7EYYn1GKFqpbO8OE=; b=S77GxMLMNT11TpHkrQ8D2qmnPvM1EgyhcQLVFuPTJnpAdMA9xelf6vM6TjQDTqgJAo6d+w0SK/czK4DeBufa8VM8ZJh/PGhkAdZkjFksxGKecPTFht9EjVzOeYA3mADy4T/JU/O01aT9IMQRiGDr5DDUT8JEC53XefAojQ/kNSc= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Subject: [PATCH v7 09/11] iotests: add testrunner.py Date: Sat, 16 Jan 2021 16:44:22 +0300 Message-Id: <20210116134424.82867-10-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210116134424.82867-1-vsementsov@virtuozzo.com> References: <20210116134424.82867-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.72] X-ClientProxiedBy: AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 61e2c1d7-26d1-40eb-8c5c-08d8ba24f124 X-MS-TrafficTypeDiagnostic: AM5PR0801MB2098: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zJ6SDlYBBldhJrCDylIjczbDq+Yl7FCGiqY1eSw20dsbnqEXgUxrNkGejhHjof1bygAvrXdc3fEMyiwXXl7Hf6Nx6KWh2iXpgOlk7QEt/QNADKp3z/AFvvv6HCjZgD5PHXIPAqk4jfh4JR1gPrP+kwgT+fBRn3pg4WPDMPZD9IW80O2wOeiL/QK+fo8LNDjDO7phC8bwME+/cvf2L+sM9NVjANOwKO0FAY28FIHRNeH+soFwlwjQR0wpZ6ZQhPLq901OIq1K+CQGTEresgzKMAGGE4yfUqivvdaDHQ89+gdzLzeK0jPpj4LvqXICz1s03RWd671R5bEOH4asecl3vf+X+6ZHq/6bxZ7+xXDt9ixqPx/oVj6rOFoiwwpl8agZBmtQDS/VaT8w1jFjZrfa1txwyGgiv6pLVzSqnhr4q+BaQxwa6sPaqNv3DUsicj1sWApQDeGRAdrY0IYe3ZzDrpmqj1Cj+6np+TltW2O8gR/XTRDTPU7e+fa5ihisF5duxlJM8BfYlperFBq+lSSt1RaJy7MJhgvzb9GcReK8bIlhhkmQ962fmxellj/7DtMeuR5zONnS22SoNlf2o2kYI652/SzDxSU+Rdt0DMM01MWb0qRmwwriJoj+3EKqIgz4/QgtM1MvzGV4dGjsjoe17w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(366004)(376002)(346002)(39830400003)(6916009)(36756003)(83380400001)(66946007)(6666004)(6512007)(86362001)(30864003)(1076003)(66556008)(5660300002)(6486002)(66476007)(6506007)(478600001)(4326008)(8676002)(8936002)(956004)(2906002)(52116002)(186003)(16526019)(316002)(26005)(2616005)(2004002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?FBoXVzJufMHHzSOyRG6aBtOdKb31lAdegvGD8o54r2Gv73g+JKYRTOoJMCUm?= =?us-ascii?Q?yDCd1BaihsOgjmdh762cpaBh7OS4p6tXZaqxfF72B2qwG0O7XxgRwD4WUgNX?= =?us-ascii?Q?wI2URVWtK8J5hnRDv3tJPTuuMfTzt4n9db9Tjh9B6WrD6b0bpQ9HVFcV/3AS?= =?us-ascii?Q?HNhh5GVc+tSKG4ujqbZCskKfKOo3Q7Tfilr2cFjzr0ZXvWoDDHyKfpFoSF1C?= =?us-ascii?Q?tIy+RE9g/zZuXGy3VU6QykrB99IcMAH+LkgpEB8cg679V4zVEp9YnWWZnbdO?= =?us-ascii?Q?QgYJBdExPRTCp8Utqjx2On9j6TOXvwwaaLFSlycqkTH+grivm68qMUVNYxXW?= =?us-ascii?Q?Os8llSpYJqg9b5ZBv8wdyFlILqbsxBTuZQ08z/U/WaU+Y53T+/c9d9H29Xuq?= =?us-ascii?Q?PNd5D6vBQ8AdApb/TRCOPeDhvbhAgPtVUaq5Pf1YByimGcrelZVtra2uLLZa?= =?us-ascii?Q?nKeifykTkSi/ILC79kZXDtWBEbYqiTE9vylnirvC24Ghfvfa5/AndaxEkXI0?= =?us-ascii?Q?Nqdu9pr1spfG7UwfI1FqdTB/3iQpJPt+gVG9PecZHDCLGeAAyjbgJB6lpRnU?= =?us-ascii?Q?WGu2zKb0bzFGWQYGwhM7yxOXL67pZAP0xLsJ7Vpd3OyLYQpAN5Rg3qOdbmaE?= =?us-ascii?Q?5LlEwkQ7Krq5zFF/9phcF9OfvaYOigsO3Dpo76tNUmJFNZc9dFS6RpQsG9rZ?= =?us-ascii?Q?izF7Alj+Po9cHV41u8L99Pa7mukWmZ4SnNgVidtiN3rFb7zWXPO6N3iPpXVp?= =?us-ascii?Q?Y3PILG5u7lvUChEBfzFFjvKlgd+CNo5SKbYXmRANhG/4DehWJf54zWn6GuOf?= =?us-ascii?Q?0Fm1uV822Zq+wvZbQLk8TONeAHo4zhnXzBLGIlFWuAhaBTaALxzaaiUbr/CH?= =?us-ascii?Q?8Ixm0ZNgvZpfMwSd7pjf0HolaQXkdIHtsagmLbMusFZbT7efL+ywPX3CzX9y?= =?us-ascii?Q?VkHOC5H8BvBcuJkJaolZMSNv7DDf27BSkxduTC3mq8aoBS84K+0dUmBNtu1f?= =?us-ascii?Q?fYX1?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 61e2c1d7-26d1-40eb-8c5c-08d8ba24f124 X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2021 13:45:10.1871 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6pEeBg1RBVek0qRllpumqJ3rEIM4hyyQbp/BmumLscnjZhUNQ+gJySmDR0BBlGP5dsa98BFR+4TQ+viQ9uaZWI0QoDJGEz5jQRJNtBJ6vOo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2098 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.6.109; envelope-from=vsementsov@virtuozzo.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" Add TestRunner class, which will run tests in a new python iotests running framework. There are some differences with current ./check behavior, most significant are: - Consider all tests self-executable, just run them, don't run python by hand. - Elapsed time is cached in json file - Elapsed time precision increased a bit - use python difflib instead of "diff -w", to ignore spaces at line ends strip lines by hand. Do not ignore other spaces. Signed-off-by: Vladimir Sementsov-Ogievskiy Tested-by: Eric Blake --- tests/qemu-iotests/testrunner.py | 344 +++++++++++++++++++++++++++++++ 1 file changed, 344 insertions(+) create mode 100644 tests/qemu-iotests/testrunner.py diff --git a/tests/qemu-iotests/testrunner.py b/tests/qemu-iotests/testrunn= er.py new file mode 100644 index 0000000000..92722cc68b --- /dev/null +++ b/tests/qemu-iotests/testrunner.py @@ -0,0 +1,344 @@ +# Class for actual tests running. +# +# Copyright (c) 2020-2021 Virtuozzo International GmbH +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +import os +import random +from pathlib import Path +import datetime +import time +import difflib +import subprocess +import collections +import contextlib +import json +import termios +import sys +from contextlib import contextmanager +from contextlib import AbstractContextManager +from typing import List, Optional, Iterator, Any + +from testenv import TestEnv + + +def silent_unlink(path: Path) -> None: + try: + path.unlink() + except OSError: + pass + + +def file_diff(file1: str, file2: str) -> List[str]: + with open(file1) as f1, open(file2) as f2: + # We want to ignore spaces at line ends. There are a lot of mess a= bout + # it in iotests. + # TODO: fix all tests to not produce extra spaces, fix all .out fi= les + # and use strict diff here! + seq1 =3D [line.rstrip() for line in f1] + seq2 =3D [line.rstrip() for line in f2] + return list(difflib.unified_diff(seq1, seq2, file1, file2)) + + +# We want to save current tty settings during test run, +# since an aborting qemu call may leave things screwed up. +@contextmanager +def savetty() -> Iterator[None]: + isterm =3D sys.stdin.isatty() + if isterm: + fd =3D sys.stdin.fileno() + attr =3D termios.tcgetattr(0) + + try: + yield + finally: + if isterm: + termios.tcsetattr(fd, termios.TCSADRAIN, attr) + + +class LastElapsedTime(AbstractContextManager['LastElapsedTime']): + """ Cache for elapsed time for tests, to show it during new test run + + Use get() in any time. But, if use update you should then call save(), + or use update() inside with-block. + """ + def __init__(self, cache_file: str, env: TestEnv) -> None: + self.env =3D env + self.cache_file =3D cache_file + + try: + with open(cache_file) as f: + self.cache =3D json.load(f) + except (OSError, ValueError): + self.cache =3D {} + + def get(self, test: str, + default: Optional[float] =3D None) -> Optional[float]: + if test not in self.cache: + return default + + if self.env.imgproto not in self.cache[test]: + return default + + return self.cache[test][self.env.imgproto].get(self.env.imgfmt, + default) + + def update(self, test: str, elapsed: float) -> None: + d =3D self.cache.setdefault(test, {}) + d =3D d.setdefault(self.env.imgproto, {}) + d[self.env.imgfmt] =3D elapsed + + def save(self) -> None: + with open(self.cache_file, 'w') as f: + json.dump(self.cache, f) + + def __enter__(self) -> 'LastElapsedTime': + return self + + def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> N= one: + self.save() + + +TestResult =3D collections.namedtuple( + 'TestResult', + ['status', 'description', 'elapsed', 'diff', 'casenotrun'], + defaults=3D('', '', '', '')) + + +class TestRunner(AbstractContextManager['TestRunner']): + def __init__(self, env: TestEnv, makecheck: bool =3D False) -> None: + self.env =3D env + self.test_run_env =3D self.env.get_env() + if 'MALLOC_PERTURB_' not in os.environ and \ + 'MALLOC_PERTURB_' not in self.test_run_env: + x =3D random.randrange(1, 255) + self.test_run_env['MALLOC_PERTURB_'] =3D str(x) + + self.makecheck =3D makecheck + + self.last_elapsed =3D LastElapsedTime('.last-elapsed-cache', env) + + def __enter__(self) -> 'TestRunner': + # pylint: disable=3Dattribute-defined-outside-init + self._stack =3D contextlib.ExitStack() + self._stack.enter_context(self.env) + self._stack.enter_context(self.last_elapsed) + self._stack.enter_context(savetty()) + return self + + def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> N= one: + self._stack.close() + + def test_print_one_line(self, test: str, starttime: str, + endtime: Optional[str] =3D None, status: str = =3D '...', + lasttime: Optional[float] =3D None, + thistime: Optional[str] =3D None, + description: str =3D '', + test_field_width: Optional[int] =3D None, + end: str =3D '\n') -> None: + """ Print short test info before/after test run """ + test =3D os.path.basename(test) + + if test_field_width is None: + test_field_width =3D 8 + + if self.makecheck and status !=3D '...': + if status and status !=3D 'pass': + status =3D f' [{status}]' + else: + status =3D '' + + print(f' TEST iotest-{self.env.imgfmt}: {test}{status}') + return + + if lasttime: + lasttime_s =3D f' (last: {lasttime}s)' + else: + lasttime_s =3D '' + if thistime: + thistime =3D f'{thistime:.1f}s' + else: + thistime =3D '...' + + if endtime: + endtime =3D f'[{endtime}]' + else: + endtime =3D '' + + if status =3D=3D 'pass': + col =3D '\033[32m' + elif status =3D=3D 'fail': + col =3D '\033[1m\033[31m' + elif status =3D=3D 'not run': + col =3D '\033[33m' + else: + col =3D '' + + col_end =3D '\033[0m' + + print(f'{test:{test_field_width}} {col}{status:10}{col_end} ' + f'[{starttime}] {endtime:13}{thistime:5} {lasttime_s:14} ' + f'{description}', end=3Dend) + + def find_reference(self, test: str) -> str: + if self.env.cachemode =3D=3D 'none': + ref =3D f'{test}.out.nocache' + if os.path.isfile(ref): + return ref + + ref =3D f'{test}.out.{self.env.imgfmt}' + if os.path.isfile(ref): + return ref + + ref =3D f'{test}.{self.env.qemu_default_machine}.out' + if os.path.isfile(ref): + return ref + + return f'{test}.out' + + def do_run_test(self, test: str) -> TestResult: + f_test =3D Path(test) + f_bad =3D Path(f_test.name + '.out.bad') + f_notrun =3D Path(f_test.name + '.notrun') + f_casenotrun =3D Path(f_test.name + '.casenotrun') + f_reference =3D Path(self.find_reference(test)) + + if not f_test.exists(): + return TestResult(status=3D'fail', + description=3Df'No such test file: {f_test}') + + if not os.access(str(f_test), os.X_OK): + sys.exit(f'Not executable: {f_test}') + + if not f_reference.exists(): + return TestResult(status=3D'fail', + description=3D'No qualified output ' + f'(expected {f_reference})') + + for p in (f_bad, f_notrun, f_casenotrun): + silent_unlink(p) + + args =3D [str(f_test.resolve())] + if self.env.debug: + args.append('-d') + + with f_test.open() as f: + try: + if f.readline() =3D=3D '#!/usr/bin/env python3': + args.insert(0, self.env.python) + except UnicodeDecodeError: # binary test? for future. + pass + + env =3D os.environ.copy() + env.update(self.test_run_env) + + t0 =3D time.time() + with f_bad.open('w') as f: + ret =3D subprocess.run(args, cwd=3Dstr(f_test.parent), env=3De= nv, + stdout=3Df, stderr=3Dsubprocess.STDOUT, + check=3DFalse).returncode + elapsed =3D round(time.time() - t0, 1) + + if ret !=3D 0: + return TestResult(status=3D'fail', elapsed=3Delapsed, + description=3Df'failed, exit status {ret}', + diff=3Dfile_diff(str(f_reference), str(f_bad= ))) + + if f_notrun.exists(): + return TestResult(status=3D'not run', elapsed=3Delapsed, + description=3Df_notrun.read_text().strip()) + + casenotrun =3D None + if f_casenotrun.exists(): + casenotrun =3D f_casenotrun.read_text() + + diff =3D file_diff(str(f_reference), str(f_bad)) + if diff: + return TestResult(status=3D'fail', elapsed=3Delapsed, + description=3D'output mismatch (see {f_bad})= ', + diff=3Ddiff, casenotrun=3Dcasenotrun) + else: + f_bad.unlink() + self.last_elapsed.update(test, elapsed) + return TestResult(status=3D'pass', elapsed=3Delapsed, + casenotrun=3Dcasenotrun) + + def run_test(self, test: str, + test_field_width: Optional[int] =3D None) -> TestResult: + last_el =3D self.last_elapsed.get(test) + start =3D datetime.datetime.now().strftime('%H:%M:%S') + + self.test_print_one_line(test=3Dtest, starttime=3Dstart, lasttime= =3Dlast_el, + end=3D'\r', test_field_width=3Dtest_field= _width) + + res =3D self.do_run_test(test) + + end =3D datetime.datetime.now().strftime('%H:%M:%S') + self.test_print_one_line(test=3Dtest, status=3Dres.status, + starttime=3Dstart, endtime=3Dend, + lasttime=3Dlast_el, thistime=3Dres.elapse= d, + description=3Dres.description, + test_field_width=3Dtest_field_width) + + if res.casenotrun: + print(res.casenotrun) + + return res + + def run_tests(self, tests: List[str]) -> None: + n_run =3D 0 + failed =3D [] + notrun =3D [] + casenotrun =3D [] + + if not self.makecheck: + self.env.print_env() + print() + + test_field_width =3D max(len(os.path.basename(t)) for t in tests) = + 2 + + for t in tests: + name =3D os.path.basename(t) + res =3D self.run_test(t, test_field_width=3Dtest_field_width) + + assert res.status in ('pass', 'fail', 'not run') + + if res.casenotrun: + casenotrun.append(t) + + if res.status !=3D 'not run': + n_run +=3D 1 + + if res.status =3D=3D 'fail': + failed.append(name) + if self.makecheck: + self.env.print_env() + if res.diff: + print('\n'.join(res.diff)) + elif res.status =3D=3D 'not run': + notrun.append(name) + + if notrun: + print('Not run:', ' '.join(notrun)) + + if casenotrun: + print('Some cases not run in:', ' '.join(casenotrun)) + + if failed: + print('Failures:', ' '.join(failed)) + print(f'Failed {len(failed)} of {n_run} iotests') + else: + print(f'Passed all {n_run} iotests') --=20 2.29.2 From nobody Thu May 2 15:02:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1610805144; cv=pass; d=zohomail.com; s=zohoarc; b=W0O29P9/N9RWEK40Pf5ANuCUT2Vg6PKG1V96CTwifRjIXENN4NtRk1sGeZpiQt9xJvOv6C72ASdX9wEfneJw5JOVFoE2VxI2qlH4xotP4sRdgb/95aEY7luNNN+VL0/ADpUOduzjVFiJ49v0/Ny0I17spYzQ1uU6EzLeFIqD2NA= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610805144; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=iozWavDkQE4yOWISJG4OYASyjpBfoCU/a2ZWZawIvfw=; b=EQT5+W9jOgdS9+3tFDDYWv72aerxEnROotRpyC1IvOV0fBomNtFQFa+mEwjZKsES2boZRTHxahdkPNfUMBtzc8JikEcXM/R63+NaLFLEcy8Gu2jHcvA13noQVSKaAneaAhMXJoNQSRM7Wo6HJXufjP8fbk69VrsSbAOCWlVf+dU= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610805144682589.2184715625515; Sat, 16 Jan 2021 05:52:24 -0800 (PST) Received: from localhost ([::1]:48978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0m07-0002An-9y for importer@patchew.org; Sat, 16 Jan 2021 08:52:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltM-0003b8-Ib; Sat, 16 Jan 2021 08:45:24 -0500 Received: from mail-db8eur05on2123.outbound.protection.outlook.com ([40.107.20.123]:62560 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltH-0007XP-Ri; Sat, 16 Jan 2021 08:45:23 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM5PR0801MB2098.eurprd08.prod.outlook.com (2603:10a6:203:4a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Sat, 16 Jan 2021 13:45:11 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8%9]) with mapi id 15.20.3763.013; Sat, 16 Jan 2021 13:45:11 +0000 Received: from kvm.sw.ru (185.215.60.72) by AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.4 via Frontend Transport; Sat, 16 Jan 2021 13:45:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NdQz7YhYDk9PNeRPhQSQ6sF+ps5VK1MPF0wu80A4a/xdw5rI/4vxwm4EBaLA5gCQ6VzOJRW5k5/v72sJw1c9RB+Wu4DvfvmekMsbQd3PDd75MjP/lYy//8P0hdJ5h5hY08PcCHSbHkxtoYyyBBtCGIkZbdrx1gj8cb0vE2y/p9w5+K5Rt3lXa/r1wZ1EaazxiQHAz4VbNDF1cSDClQIXATXe1Fa5bEwd0gvuKhpHKNwmytTqOzmp2wGBfqUpkJNZiEVioKsuNyhYuMVip1mTrOCZ78ROPKcPxVSQkmhZCqqpvr90jBOfUT1/Qguq2eewMDXFQf765BUQq4/9oDHYvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iozWavDkQE4yOWISJG4OYASyjpBfoCU/a2ZWZawIvfw=; b=ZyNGgZTLLGmV0JzNFkvmVSGoGbEc9jhai5RrxDcI6+di/Fh/bxR58yixx4OTHOPACVq23+Y4HlWZN/ycBEjVznZq+t5ce4pFljanGygJoaDFRXTlUNxeVcDGMENS0VPFMetlSj60WCiYmseGB7n13Eo3yZAYGemqDg+JtVSLLPRYQRAL/lreiA2DSiUCw/iDsaf2oTAXjE3jw3EJ1beNkbJNYnKjYuaiAfdMgRPUbadgtcHuFZy+f3F5Ul+hZA3OtgoBGLyDg/O9vtFG/jFhVwHgG7nAEe07a8H/P45MU4gUAFX7Lx7lrTPgq+c2KdwBDEMuWWRKK8p4Quh+1or+DQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iozWavDkQE4yOWISJG4OYASyjpBfoCU/a2ZWZawIvfw=; b=QJKnmAAEOMVVzbUuiX64gSHq8mwfQn7+9ehToqYY+/gJvi7TAg8o14fxU5IjrCuapcbJvZjbGyS55jl+wc+69tZNi6hap29tgIhzzP5FNK305lm97IPXCR05uPy02HZF7MsbAoqk/6l1cXKVKBs4ObBhKWlEmclyXXO2qQ7M86g= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Subject: [PATCH v7 10/11] iotests: rewrite check into python Date: Sat, 16 Jan 2021 16:44:23 +0300 Message-Id: <20210116134424.82867-11-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210116134424.82867-1-vsementsov@virtuozzo.com> References: <20210116134424.82867-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.72] X-ClientProxiedBy: AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ee18a95-ab1a-40f1-a4bb-08d8ba24f1a8 X-MS-TrafficTypeDiagnostic: AM5PR0801MB2098: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:758; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c934FO7+SLGpG+4Qb+zc2Ax1AsYg32jaKtm5JbBRHbVfg0OGNlt90ZQOYCGFiLL6REy8r/WohukELJP3IpfHRtyN9RkQiCyJA9V75xeCaJkz2g5Ydvii4IEZRpG9xwILt2xmOlLKEDY58RkGAsqXFFNnQJSUXvZIlFRa7WWTOxTU63deNHxwtgOswirhMzNfFP1/du6it3c3uK69Ty2p9H9AF9pT1lmmC11nyhPVqJmrS1ByT8inHzyVnXzwa0yRtb8tSg3Dt86PlCKsZxGq64vcp7klaIDNX/MvgliqPjoTXtyJ2e+8160oVOyE7vtog0b+0FEf3w+D7OdrhDuVRTAhgH+HNf9f3B0ZEy44l8Pz5PgKOHKDP7kpEOr8yvv9Uri9IF8Ubnoy1Thy3WPXSOvM5N89Nr33d61i4m8ba/l7A1UQYng+9w90CgKt4l3PjaEULqh8uZowLTP20zTIHjtE9epz/GH3RwhKL5C1L6KdCGW2nqn0cXO5jTzpvT8KK4H2hEmS13aEi5aIlnZ+kHeMRBAmmONKyB3ddLJeOkTZ21XlipnOSUrUIq8FLPjnHB6S6cBg8X4rLK+OVyXMw//1zF3zaBDeoX6dltTe0YzbUgHuwmCghOjNmieBulyJlzCFg12ksgbEcANVnRH1Ww== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(366004)(376002)(346002)(39830400003)(6916009)(36756003)(83380400001)(66946007)(6666004)(6512007)(86362001)(30864003)(1076003)(66556008)(5660300002)(6486002)(66476007)(6506007)(478600001)(4326008)(8676002)(8936002)(956004)(2906002)(52116002)(186003)(16526019)(316002)(26005)(2616005)(2004002)(579004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?rUOC6tQKRBcMCIJ9Jj6NA37WAZ6Mfd5fdgM2OAeJAkkk9kHlrhPKKRsSWkdf?= =?us-ascii?Q?cspth8qocB8ar86JRkK0bKgK46Q0us90DB086PcXLRcgX+sdLVTUHY7d6bel?= =?us-ascii?Q?LWxAzFG2YZb99IlfKRYdObDWd/RRNhaVca1nYr+t9w2P9J+4zkojwRtPFpq0?= =?us-ascii?Q?Tf3T4xsyQJXNS7EvI+7KUgzECdnNqtRlZQ4jzm5pCdrPrB7AqwnNow9Gfw4a?= =?us-ascii?Q?pbJ22Pkai8qmW/PmK4Uq3a0xWab2fBvAww+C2ARUlGhNA6iC5YcrFadeiim6?= =?us-ascii?Q?0N5zyWcYC7BB8ugia+NahqYUT52m77WFrbRyFva3IhIbkFMBFh/htRt/KpKR?= =?us-ascii?Q?Eol2Lv645/79iSo3Sc780doP5OQazK7YQ92gooyV+9MM3ZoDjDWFD6KVfL2y?= =?us-ascii?Q?LQdZkHyxfauqS2wJAGukdSqPaUyxKIIgS+fhUY0sNrJVe+Bu5k9bTVuU0t1s?= =?us-ascii?Q?oDqVeIxG4ZLzAtqQWVl2JyLLJjIIpJVinfuKpqZAq8B0/oKLtvwXkGHeopEm?= =?us-ascii?Q?lvvw5D4uSop+aLqkALP4t4/CvYk9Jv3TUcV0/6J0TC1v8WOCpz7kI8x8hVAA?= =?us-ascii?Q?1DWwaXKdcZb+AcnFxza6P99wj+7RtmSgI+QF6kYBb/7rvpSvXMxFuGGeGchc?= =?us-ascii?Q?uclI1xp9oy7fZZUDpkpElgBemiB8aQWnjWkp3QcnfLTQTpCCjW1uRaW4PHaW?= =?us-ascii?Q?BEb+INTIK8qH9+dJ/Kx2ptS227/GUNX/1VCAwruApD2p0mhlatJ6Ye9V9+ao?= =?us-ascii?Q?nWVv485101uCgeuHMT6YV76KF+3uw7RuojzTc+eQzo0Vt1fDvnMLSmDbfUhA?= =?us-ascii?Q?JbutffSXxB+FsirI8V0DlyggCS3v2ALlPEIkfq8jlf/CNfD/VT2oHzGmJ2nE?= =?us-ascii?Q?wQWzHET2PQNwLNVfK8bLnWYCyAYX9Vuiqu/9pAXbolMpkNnNIyEuuUtpl1qH?= =?us-ascii?Q?bmwM6hLlxHv4bDi3cLmLg1u+T58nWJ3TamLnYSsLuFdiVCC6Mfp917EI3Owq?= =?us-ascii?Q?GFvI?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ee18a95-ab1a-40f1-a4bb-08d8ba24f1a8 X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2021 13:45:11.2355 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fpmXDrp0Rm8C/OmfK6Cgoa+5PbvrDBD6sMfaj0kNG7yXmEF27Uqm/ab0Lzw4gSpo4CCChaznoUy76EJkJHk6pGzI886dnQJkOmpa3sf7GiQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2098 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.20.123; envelope-from=vsementsov@virtuozzo.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" Just use classes introduced in previous three commits. Behavior difference is described in these three commits. Drop group file, as it becomes unused. Drop common.env: now check is in python, and for tests we use same python interpreter that runs the check itself. Use build environment PYTHON in check-block instead, to keep "make check" use the same python. Signed-off-by: Vladimir Sementsov-Ogievskiy Tested-by: Eric Blake --- Makefile | 1 - tests/check-block.sh | 2 +- tests/qemu-iotests/check | 1085 ++++-------------------------- tests/qemu-iotests/common.env.in | 3 - tests/qemu-iotests/group | 321 --------- tests/qemu-iotests/meson.build | 3 - 6 files changed, 120 insertions(+), 1295 deletions(-) delete mode 100644 tests/qemu-iotests/common.env.in delete mode 100644 tests/qemu-iotests/group diff --git a/Makefile b/Makefile index fb9923ff22..2134b5147c 100644 --- a/Makefile +++ b/Makefile @@ -236,7 +236,6 @@ distclean: clean rm -f config-host.mak config-host.h* rm -f tests/tcg/config-*.mak rm -f config-all-disas.mak config.status - rm -f tests/qemu-iotests/common.env rm -f roms/seabios/config.mak roms/vgabios/config.mak rm -f qemu-plugins-ld.symbols qemu-plugins-ld64.symbols rm -f *-config-target.h *-config-devices.mak *-config-devices.h diff --git a/tests/check-block.sh b/tests/check-block.sh index fb4c1baae9..26eb1c0a9b 100755 --- a/tests/check-block.sh +++ b/tests/check-block.sh @@ -69,7 +69,7 @@ export QEMU_CHECK_BLOCK_AUTO=3D1 =20 ret=3D0 for fmt in $format_list ; do - ./check -makecheck -$fmt $group || ret=3D1 + ${PYTHON} ./check -makecheck -$fmt $group || ret=3D1 done =20 exit $ret diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check index 952762d5ed..914321806a 100755 --- a/tests/qemu-iotests/check +++ b/tests/qemu-iotests/check @@ -1,7 +1,8 @@ -#!/usr/bin/env bash +#!/usr/bin/env python3 # -# Copyright (C) 2009 Red Hat, Inc. -# Copyright (c) 2000-2002,2006 Silicon Graphics, Inc. All Rights Reserved. +# Configure environment and run group of tests in it. +# +# Copyright (c) 2020-2021 Virtuozzo International GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -14,967 +15,119 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# -# -# Control script for QA -# - -status=3D0 -needwrap=3Dtrue -try=3D0 -n_bad=3D0 -bad=3D"" -notrun=3D"" -casenotrun=3D"" -interrupt=3Dtrue -makecheck=3Dfalse - -_init_error() -{ - echo "check: $1" >&2 - exit 1 -} - -if [ -L "$0" ] -then - # called from the build tree - source_iotests=3D$(dirname "$(readlink "$0")") - if [ -z "$source_iotests" ] - then - _init_error "failed to obtain source tree name from check symlink" - fi - source_iotests=3D$(cd "$source_iotests"; pwd) || _init_error "failed t= o enter source tree" - build_iotests=3D$(cd "$(dirname "$0")"; pwd) -else - # called from the source tree - source_iotests=3D$PWD - # this may be an in-tree build (note that in the following code we may= not - # assume that it truly is and have to test whether the build results - # actually exist) - build_iotests=3D$PWD -fi - -build_root=3D"$build_iotests/../.." - -# we need common.env -if ! . "$build_iotests/common.env" -then - _init_error "failed to source common.env (make sure the qemu-iotests a= re run from tests/qemu-iotests in the build tree)" -fi - -# we need common.config -if ! . "$source_iotests/common.config" -then - _init_error "failed to source common.config" -fi - -_full_imgfmt_details() -{ - if [ -n "$IMGOPTS" ]; then - echo "$IMGFMT ($IMGOPTS)" - else - echo "$IMGFMT" - fi -} - -_full_platform_details() -{ - os=3D$(uname -s) - host=3D$(hostname -s) - kernel=3D$(uname -r) - platform=3D$(uname -m) - echo "$os/$platform $host $kernel" -} - -_full_env_details() -{ - cat < /dev/null) - if [ -n "$p" -a -x "$p" ]; then - type -p "$p" - else - return 1 - fi -} - -if [ -z "$TEST_DIR" ]; then - TEST_DIR=3D$PWD/scratch -fi -mkdir -p "$TEST_DIR" || _init_error 'Failed to create TEST_DIR' - -tmp_sock_dir=3Dfalse -if [ -z "$SOCK_DIR" ]; then - SOCK_DIR=3D$(mktemp -d) - tmp_sock_dir=3Dtrue -fi -mkdir -p "$SOCK_DIR" || _init_error 'Failed to create SOCK_DIR' - -diff=3D"diff -u" -verbose=3Dfalse -debug=3Dfalse -group=3Dfalse -xgroup=3Dfalse -imgopts=3Dfalse -showme=3Dfalse -sortme=3Dfalse -expunge=3Dtrue -have_test_arg=3Dfalse -cachemode=3Dfalse -aiomode=3Dfalse - -tmp=3D"${TEST_DIR}"/$$ -rm -f $tmp.list $tmp.tmp $tmp.sed - -export IMGFMT=3Draw -export IMGFMT_GENERIC=3Dtrue -export IMGPROTO=3Dfile -export IMGOPTS=3D"" -export CACHEMODE=3D"writeback" -export AIOMODE=3D"threads" -export QEMU_IO_OPTIONS=3D"" -export QEMU_IO_OPTIONS_NO_FMT=3D"" -export CACHEMODE_IS_DEFAULT=3Dtrue -export VALGRIND_QEMU=3D -export IMGKEYSECRET=3D -export IMGOPTSSYNTAX=3Dfalse - -# Save current tty settings, since an aborting qemu call may leave things -# screwed up -STTY_RESTORE=3D -if test -t 0; then - STTY_RESTORE=3D$(stty -g) -fi - -for r -do - - if $group - then - # arg after -g - group_list=3D$(sed -n <"$source_iotests/group" -e 's/$/ /' -e "/^[= 0-9][0-9][0-9].* $r /"'{ -s/ .*//p -}') - if [ -z "$group_list" ] - then - echo "Group \"$r\" is empty or not defined?" - exit 1 - fi - [ ! -s $tmp.list ] && touch $tmp.list - for t in $group_list - do - if grep -s "^$t\$" $tmp.list >/dev/null - then - : - else - echo "$t" >>$tmp.list - fi - done - group=3Dfalse - continue - - elif $xgroup - then - # arg after -x - # Populate $tmp.list with all tests - awk '/^[0-9]{3,}/ {print $1}' "${source_iotests}/group" > $tmp.lis= t 2>/dev/null - group_list=3D$(sed -n <"$source_iotests/group" -e 's/$/ /' -e "/^[= 0-9][0-9][0-9].* $r /"'{ -s/ .*//p -}') - if [ -z "$group_list" ] - then - echo "Group \"$r\" is empty or not defined?" - exit 1 - fi - numsed=3D0 - rm -f $tmp.sed - for t in $group_list - do - if [ $numsed -gt 100 ] - then - sed -f $tmp.sed <$tmp.list >$tmp.tmp - mv $tmp.tmp $tmp.list - numsed=3D0 - rm -f $tmp.sed - fi - echo "/^$t\$/d" >>$tmp.sed - numsed=3D$(expr $numsed + 1) - done - sed -f $tmp.sed <$tmp.list >$tmp.tmp - mv $tmp.tmp $tmp.list - xgroup=3Dfalse - continue - - elif $imgopts - then - IMGOPTS=3D"$r" - imgopts=3Dfalse - continue - elif $cachemode - then - CACHEMODE=3D"$r" - CACHEMODE_IS_DEFAULT=3Dfalse - cachemode=3Dfalse - continue - elif $aiomode - then - AIOMODE=3D"$r" - aiomode=3Dfalse - continue - fi - - xpand=3Dtrue - case "$r" - in - - -\? | -h | --help) # usage - echo "Usage: $0 [options] [testlist]"' - -common options - -v verbose - -d debug - -image format options - -raw test raw (default) - -bochs test bochs - -cloop test cloop - -parallels test parallels - -qcow test qcow - -qcow2 test qcow2 - -qed test qed - -vdi test vdi - -vpc test vpc - -vhdx test vhdx - -vmdk test vmdk - -luks test luks - -dmg test dmg - -image protocol options - -file test file (default) - -rbd test rbd - -sheepdog test sheepdog - -nbd test nbd - -fuse test fuse - -ssh test ssh - -nfs test nfs - -other options - -xdiff graphical mode diff - -nocache use O_DIRECT on backing file - -misalign misalign memory allocations - -n show me, do not run tests - -o options -o options to pass to qemu-img create/convert - -c mode cache mode - -i mode AIO mode - -makecheck pretty print output for make check - -testlist options - -g group[,group...] include tests from these groups - -x group[,group...] exclude tests from these groups - NNN include test NNN - NNN-NNN include test range (eg. 012-021) -' - exit 0 - ;; - - -raw) - IMGFMT=3Draw - xpand=3Dfalse - ;; - - -bochs) - IMGFMT=3Dbochs - IMGFMT_GENERIC=3Dfalse - xpand=3Dfalse - ;; - - -cloop) - IMGFMT=3Dcloop - IMGFMT_GENERIC=3Dfalse - xpand=3Dfalse - ;; - - -parallels) - IMGFMT=3Dparallels - xpand=3Dfalse - ;; - - -qcow) - IMGFMT=3Dqcow - xpand=3Dfalse - ;; - - -qcow2) - IMGFMT=3Dqcow2 - xpand=3Dfalse - ;; - - -luks) - IMGOPTSSYNTAX=3Dtrue - IMGFMT=3Dluks - IMGKEYSECRET=3D123456 - xpand=3Dfalse - ;; - - -dmg) - IMGFMT=3Ddmg - IMGFMT_GENERIC=3Dfalse - xpand=3Dfalse - ;; - - -qed) - IMGFMT=3Dqed - xpand=3Dfalse - ;; - - -vdi) - IMGFMT=3Dvdi - xpand=3Dfalse - ;; - - -vmdk) - IMGFMT=3Dvmdk - xpand=3Dfalse - ;; - - -vpc) - IMGFMT=3Dvpc - xpand=3Dfalse - ;; - - -vhdx) - IMGFMT=3Dvhdx - xpand=3Dfalse - ;; - - -file) - IMGPROTO=3Dfile - xpand=3Dfalse - ;; - - -rbd) - IMGPROTO=3Drbd - xpand=3Dfalse - ;; - - -sheepdog) - IMGPROTO=3Dsheepdog - xpand=3Dfalse - ;; - - -nbd) - IMGPROTO=3Dnbd - xpand=3Dfalse - ;; - - -fuse) - IMGPROTO=3Dfuse - xpand=3Dfalse - ;; - - -ssh) - IMGPROTO=3Dssh - xpand=3Dfalse - ;; - - -nfs) - IMGPROTO=3Dnfs - xpand=3Dfalse - ;; - - -nocache) - CACHEMODE=3D"none" - CACHEMODE_IS_DEFAULT=3Dfalse - xpand=3Dfalse - ;; - - -misalign) - QEMU_IO_OPTIONS=3D"$QEMU_IO_OPTIONS --misalign" - xpand=3Dfalse - ;; - - -valgrind) - VALGRIND_QEMU=3D'y' - xpand=3Dfalse - ;; - - -g) # -g group ... pick from group file - group=3Dtrue - xpand=3Dfalse - ;; - - -xdiff) # graphical diff mode - xpand=3Dfalse - - if [ ! -z "$DISPLAY" ] - then - command -v xdiff >/dev/null 2>&1 && diff=3Dxdiff - command -v gdiff >/dev/null 2>&1 && diff=3Dgdiff - command -v tkdiff >/dev/null 2>&1 && diff=3Dtkdiff - command -v xxdiff >/dev/null 2>&1 && diff=3Dxxdiff - fi - ;; - -makecheck) # makecheck friendly output - makecheck=3Dtrue - xpand=3Dfalse - ;; - -n) # show me, don't do it - showme=3Dtrue - xpand=3Dfalse - ;; - -o) - imgopts=3Dtrue - xpand=3Dfalse - ;; - -c) - cachemode=3Dtrue - xpand=3Dfalse - ;; - -i) - aiomode=3Dtrue - xpand=3Dfalse - ;; - -T) # deprecated timestamp option - xpand=3Dfalse - ;; - -v) - verbose=3Dtrue - xpand=3Dfalse - ;; - -d) - debug=3Dtrue - xpand=3Dfalse - ;; - -x) # -x group ... exclude from group file - xgroup=3Dtrue - xpand=3Dfalse - ;; - '[0-9][0-9][0-9] [0-9][0-9][0-9][0-9]') - echo "No tests?" - status=3D1 - exit $status - ;; - - [0-9]*-[0-9]*) - eval $(echo $r | sed -e 's/^/start=3D/' -e 's/-/ end=3D/') - ;; - - [0-9]*-) - eval $(echo $r | sed -e 's/^/start=3D/' -e 's/-//') - end=3D$(echo [0-9][0-9][0-9] [0-9][0-9][0-9][0-9] | sed -e 's/= \[0-9]//g' -e 's/ *$//' -e 's/.* //') - if [ -z "$end" ] - then - echo "No tests in range \"$r\"?" - status=3D1 - exit $status - fi - ;; - - *) - start=3D$r - end=3D$r - ;; - - esac - - # get rid of leading 0s as can be interpreted as octal - start=3D$(echo $start | sed 's/^0*//') - end=3D$(echo $end | sed 's/^0*//') - - if $xpand - then - have_test_arg=3Dtrue - awk /dev/null - then - # in group file ... OK - echo $id >>$tmp.list - else - if [ -f expunged ] && $expunge && egrep "^$id([ ]|= \$)" expunged >/dev/null - then - # expunged ... will be reported, but not run, later - echo $id >>$tmp.list - else - # oops - if [ "$start" =3D=3D "$end" -a "$id" =3D=3D "$end" ] - then - echo "$id - unknown test" - exit 1 - else - echo "$id - unknown test, ignored" - fi - fi - fi - done || exit 1 - fi - -done - -# Set qemu-io cache mode with $CACHEMODE we have -QEMU_IO_OPTIONS=3D"$QEMU_IO_OPTIONS --cache $CACHEMODE" -# Set qemu-io aio mode with $AIOMODE we have -QEMU_IO_OPTIONS=3D"$QEMU_IO_OPTIONS --aio $AIOMODE" - -QEMU_IO_OPTIONS_NO_FMT=3D"$QEMU_IO_OPTIONS" -if [ "$IMGOPTSSYNTAX" !=3D "true" ]; then - QEMU_IO_OPTIONS=3D"$QEMU_IO_OPTIONS -f $IMGFMT" -fi - -# Set default options for qemu-img create -o if they were not specified -if [ "$IMGFMT" =3D=3D "qcow2" ] && ! (echo "$IMGOPTS" | grep "compat=3D" >= /dev/null); then - IMGOPTS=3D$(_optstr_add "$IMGOPTS" "compat=3D1.1") -fi -if [ "$IMGFMT" =3D=3D "luks" ] && ! (echo "$IMGOPTS" | grep "iter-time=3D"= > /dev/null); then - IMGOPTS=3D$(_optstr_add "$IMGOPTS" "iter-time=3D10") -fi -if [ "$IMGFMT" =3D=3D "vmdk" ] && ! (echo "$IMGOPTS" | grep "zeroed_grain= =3D" > /dev/null); then - IMGOPTS=3D$(_optstr_add "$IMGOPTS" "zeroed_grain=3Don") -fi - -if [ -z "$SAMPLE_IMG_DIR" ]; then - SAMPLE_IMG_DIR=3D"$source_iotests/sample_images" -fi - -export TEST_DIR -export SOCK_DIR -export SAMPLE_IMG_DIR - -if [ -s $tmp.list ] -then - # found some valid test numbers ... this is good - : -else - if $have_test_arg - then - # had test numbers, but none in group file ... do nothing - touch $tmp.list - else - # no test numbers, do everything from group file - sed -n -e '/^[0-9][0-9][0-9]*/s/^\([0-9]*\).*/\1/p' <"$source_iote= sts/group" >$tmp.list - fi -fi - -# should be sort -n, but this did not work for Linux when this -# was ported from IRIX -# -list=3D$(sort $tmp.list) -rm -f $tmp.list $tmp.tmp $tmp.sed - -if [ -z "$QEMU_PROG" ] -then - if [ -x "$build_iotests/qemu" ]; then - export QEMU_PROG=3D"$build_iotests/qemu" - elif [ -x "$build_root/qemu-system-${qemu_arch}" ]; then - export QEMU_PROG=3D"$build_root/qemu-system-${qemu_arch}" - else - pushd "$build_root" > /dev/null - for binary in qemu-system-* - do - if [ -x "$binary" ] - then - export QEMU_PROG=3D"$build_root/$binary" - break - fi - done - popd > /dev/null - [ "$QEMU_PROG" =3D "" ] && _init_error "qemu not found" - fi -fi -export QEMU_PROG=3D"$(type -p "$QEMU_PROG")" - -export QEMU_OPTIONS=3D"-nodefaults -display none -accel qtest" -case "$QEMU_PROG" in - *qemu-system-arm|*qemu-system-aarch64) - export QEMU_OPTIONS=3D"$QEMU_OPTIONS -machine virt" - ;; - *qemu-system-avr) - export QEMU_OPTIONS=3D"$QEMU_OPTIONS -machine mega2560" - ;; - *qemu-system-rx) - export QEMU_OPTIONS=3D"$QEMU_OPTIONS -machine gdbsim-r5f562n8" - ;; - *qemu-system-tricore) - export QEMU_OPTIONS=3D"-$QEMU_OPTIONS -machine tricore_testboard" - ;; -esac - -if [ -z "$QEMU_IMG_PROG" ]; then - if [ -x "$build_iotests/qemu-img" ]; then - export QEMU_IMG_PROG=3D"$build_iotests/qemu-img" - elif [ -x "$build_root/qemu-img" ]; then - export QEMU_IMG_PROG=3D"$build_root/qemu-img" - else - _init_error "qemu-img not found" - fi -fi -export QEMU_IMG_PROG=3D"$(type -p "$QEMU_IMG_PROG")" - -if [ -z "$QEMU_IO_PROG" ]; then - if [ -x "$build_iotests/qemu-io" ]; then - export QEMU_IO_PROG=3D"$build_iotests/qemu-io" - elif [ -x "$build_root/qemu-io" ]; then - export QEMU_IO_PROG=3D"$build_root/qemu-io" - else - _init_error "qemu-io not found" - fi -fi -export QEMU_IO_PROG=3D"$(type -p "$QEMU_IO_PROG")" - -if [ -z $QEMU_NBD_PROG ]; then - if [ -x "$build_iotests/qemu-nbd" ]; then - export QEMU_NBD_PROG=3D"$build_iotests/qemu-nbd" - elif [ -x "$build_root/qemu-nbd" ]; then - export QEMU_NBD_PROG=3D"$build_root/qemu-nbd" - else - _init_error "qemu-nbd not found" - fi -fi -export QEMU_NBD_PROG=3D"$(type -p "$QEMU_NBD_PROG")" - -if [ -z "$QSD_PROG" ]; then - if [ -x "$build_iotests/qemu-storage-daemon" ]; then - export QSD_PROG=3D"$build_iotests/qemu-storage-daemon" - elif [ -x "$build_root/storage-daemon/qemu-storage-daemon" ]; then - export QSD_PROG=3D"$build_root/storage-daemon/qemu-storage-daemon" - else - _init_error "qemu-storage-daemon not found" - fi -fi -export QSD_PROG=3D"$(type -p "$QSD_PROG")" - -if [ -x "$build_iotests/socket_scm_helper" ] -then - export SOCKET_SCM_HELPER=3D"$build_iotests/socket_scm_helper" -fi - -python_usable=3Dfalse -if $PYTHON -c 'import sys; sys.exit(0 if sys.version_info >=3D (3,6) else = 1)' -then - # Our python framework also requires virtio-blk - if "$QEMU_PROG" -M none -device help | grep -q virtio-blk >/dev/null 2= >&1 - then - python_usable=3Dtrue - else - python_unusable_because=3D"Missing virtio-blk in QEMU binary" - fi -else - python_unusable_because=3D"Unsupported Python version" -fi - -default_machine=3D$($QEMU_PROG -machine help | sed -n '/(default)/ s/ .*//= p') -default_alias_machine=3D$($QEMU_PROG -machine help | \ - sed -n "/(alias of $default_machine)/ { s/ .*//p; q; }") -if [[ "$default_alias_machine" ]]; then - default_machine=3D"$default_alias_machine" -fi - -export QEMU_DEFAULT_MACHINE=3D"$default_machine" - -TIMESTAMP_FILE=3Dcheck.time-$IMGPROTO-$IMGFMT - -_wallclock() -{ - date "+%H %M %S" | awk '{ print $1*3600 + $2*60 + $3 }' -} - -_wrapup() -{ - if $showme - then - : - elif $needwrap - then - if [ -f $TIMESTAMP_FILE -a -f $tmp.time ] - then - cat $TIMESTAMP_FILE $tmp.time \ - | awk ' - { t[$1] =3D $2 } -END { if (NR > 0) { - for (i in t) print i " " t[i] - } - }' \ - | sort -n >$tmp.out - mv $tmp.out $TIMESTAMP_FILE - fi - - if [ -f $tmp.expunged ] - then - notrun=3D$(wc -l <$tmp.expunged | sed -e 's/ *//g') - try=3D$(expr $try - $notrun) - list=3D$(echo "$list" | sed -f $tmp.expunged) - fi - - echo "" >>check.log - date >>check.log - echo $list | fmt | sed -e 's/^/ /' >>check.log - $interrupt && echo "Interrupted!" >>check.log - - if [ ! -z "$notrun" ] - then - echo "Not run:$notrun" - echo "Not run:$notrun" >>check.log - fi - if [ ! -z "$casenotrun" ] - then - echo "Some cases not run in:$casenotrun" - echo "Some cases not run in:$casenotrun" >>check.log - fi - if [ ! -z "$n_bad" -a $n_bad !=3D 0 ] - then - echo "Failures:$bad" - echo "Failed $n_bad of $try iotests" - echo "Failures:$bad" | fmt >>check.log - echo "Failed $n_bad of $try iotests" >>check.log - else - echo "Passed all $try iotests" - echo "Passed all $try iotests" >>check.log - fi - needwrap=3Dfalse - fi - - if test -n "$STTY_RESTORE"; then - stty $STTY_RESTORE - fi - rm -f "${TEST_DIR}"/*.out "${TEST_DIR}"/*.err "${TEST_DIR}"/*.time - rm -f "${TEST_DIR}"/check.pid "${TEST_DIR}"/check.sts - rm -f $tmp.* - - if $tmp_sock_dir - then - rm -rf "$SOCK_DIR" - fi -} - -trap "_wrapup; exit \$status" 0 1 2 3 15 - -# Report the test start and results. For makecheck we want to pretty -# print the whole report at the end of the execution. -# args: $seq, $starttime, $lasttime -_report_test_start() -{ - if ! $makecheck; then - if [ -n "$3" ]; then - local lasttime=3D" (last: $3s)" - fi - printf "%-8s %-10s [%s] %4s%-14s\r" "$1" "..." "$2" "..= ." "$lasttime" - fi -} -# args:$seq $status $starttime $lasttime $thistime $details -_report_test_result() -{ - local status lasttime thistime - if $makecheck; then - if [ -n "$2" ] && [ "$2" !=3D "pass" ]; then - status=3D" [$2]" - fi - printf " TEST iotest-$IMGFMT: %s%s\n" "$1" "$status" - return - fi - - if [ -n "$4" ]; then - lasttime=3D" (last: $4s)" - fi - if [ -n "$5" ]; then - thistime=3D" $5s" - fi - case "$2" in - "pass") status=3D$(printf "\e[32m%-10s\e[0m" "$2") ;; - "fail") status=3D$(printf "\e[1m\e[31m%-10s\e[0m" "$2") ;; - "not run") status=3D$(printf "\e[33m%-10s\e[0m" "$2") ;; - *) status=3D$(printf "%-10s" "$2") ;; - esac - - printf "%-8s %s [%s] [%s] %4s%-14s %s\n" "$1" "$status" "$3" "$(date '= +%T')" "$thistime" "$lasttime" "$6" -} - -[ -f $TIMESTAMP_FILE ] || touch $TIMESTAMP_FILE - -FULL_IMGFMT_DETAILS=3D$(_full_imgfmt_details) -FULL_HOST_DETAILS=3D$(_full_platform_details) - -if ! $makecheck; then - _full_env_details -fi - -seq=3D"check" - -[ -n "$TESTS_REMAINING_LOG" ] && echo $list > $TESTS_REMAINING_LOG - -for seq in $list -do - err=3Dfalse # error flag - printdiff=3Dfalse # show diff to reference output? - status=3D"" # test result summary - results=3D"" # test result details - thistime=3D"" # time the test took - - if [ -n "$TESTS_REMAINING_LOG" ] ; then - sed -e "s/$seq//" -e 's/ / /' -e 's/^ *//' $TESTS_REMAINING_LOG >= $TESTS_REMAINING_LOG.tmp - mv $TESTS_REMAINING_LOG.tmp $TESTS_REMAINING_LOG - sync - fi - - lasttime=3D$(sed -n -e "/^$seq /s/.* //p" <$TIMESTAMP_FILE) - starttime=3D$(date "+%T") - _report_test_start $seq $starttime $lasttime - - if $showme - then - status=3D"not run" - elif [ -f expunged ] && $expunge && egrep "^$seq([ ]|\$)" expu= nged >/dev/null - then - status=3D"not run" - results=3D"expunged" - rm -f $seq.out.bad - echo "/^$seq\$/d" >>$tmp.expunged - elif [ ! -f "$source_iotests/$seq" ] - then - status=3D"not run" - results=3D"no such test?" - echo "/^$seq\$/d" >>$tmp.expunged - else - # really going to try and run this one - # - rm -f $seq.out.bad - rm -f core $seq.notrun - rm -f $seq.casenotrun - - start=3D$(_wallclock) - - if [ "$(head -n 1 "$source_iotests/$seq")" =3D=3D "#!/usr/bin/env = python3" ]; then - if $python_usable; then - run_command=3D"$PYTHON $seq" - else - run_command=3D"false" - echo "$python_unusable_because" > $seq.notrun - fi - else - run_command=3D"./$seq" - fi - export OUTPUT_DIR=3D$PWD - if $debug; then - (cd "$source_iotests"; - MALLOC_PERTURB_=3D${MALLOC_PERTURB_:-$(($RANDOM % 255 + 1))} \ - $run_command -d 2>&1 | tee $tmp.out) - else - (cd "$source_iotests"; - MALLOC_PERTURB_=3D${MALLOC_PERTURB_:-$(($RANDOM % 255 + 1))} \ - $run_command >$tmp.out 2>&1) - fi - sts=3D$? - stop=3D$(_wallclock) - - if [ -f core ] - then - mv core $seq.core - status=3D"fail" - results=3D"[dumped core] $seq.core" - err=3Dtrue - fi - - if [ -f $seq.notrun ] - then - # overwrites timestamp output - status=3D"not run" - results=3D"$(cat $seq.notrun)" - else - if [ $sts -ne 0 ] - then - status=3D"fail" - results=3D$(printf %s "[failed, exit status $sts]") - err=3Dtrue - fi - - reference=3D"$source_iotests/$seq.out" - reference_machine=3D"$source_iotests/$seq.$QEMU_DEFAULT_MACHIN= E.out" - if [ -f "$reference_machine" ]; then - reference=3D"$reference_machine" - fi - - reference_format=3D"$source_iotests/$seq.out.$IMGFMT" - if [ -f "$reference_format" ]; then - reference=3D"$reference_format" - fi - - if [ "$CACHEMODE" =3D "none" ]; then - [ -f "$source_iotests/$seq.out.nocache" ] && reference=3D"= $source_iotests/$seq.out.nocache" - fi - - if [ ! -f "$reference" ] - then - status=3D"fail" - results=3D"no qualified output" - err=3Dtrue - else - if diff -w "$reference" $tmp.out >/dev/null 2>&1 - then - if ! $err; then - status=3D"pass" - thistime=3D$(expr $stop - $start) - echo "$seq $thistime" >>$tmp.time - fi - else - mv $tmp.out $seq.out.bad - status=3D"fail" - results=3D"output mismatch (see $seq.out.bad)" - printdiff=3Dtrue - err=3Dtrue - fi - fi - fi - if [ -f $seq.casenotrun ] - then - cat $seq.casenotrun - casenotrun=3D"$casenotrun $seq" - fi - fi - - # come here for each test, except when $showme is true - # - _report_test_result $seq "$status" "$starttime" "$lasttime" "$thistime= " "$results" - case "$status" in - "pass") - try=3D$(expr $try + 1) - ;; - "fail") - try=3D$(expr $try + 1) - if $makecheck; then - _full_env_details - fi - if $printdiff; then - $diff -w "$reference" "$PWD"/$seq.out.bad - fi - bad=3D"$bad $seq" - n_bad=3D$(expr $n_bad + 1) - quick=3Dfalse - ;; - "not run") - notrun=3D"$notrun $seq" - ;; - esac - - seq=3D"after_$seq" -done =20 -interrupt=3Dfalse -status=3D$(expr $n_bad) -exit +import os +import sys +import argparse +from findtests import TestFinder +from testenv import TestEnv +from testrunner import TestRunner + + +def make_argparser() -> argparse.ArgumentParser: + p =3D argparse.ArgumentParser(description=3D"Test run options") + + p.add_argument('-n', '--dry-run', action=3D'store_true', + help=3D'show me, do not run tests') + p.add_argument('-makecheck', action=3D'store_true', + help=3D'pretty print output for make check') + + p.add_argument('-d', dest=3D'debug', action=3D'store_true', help=3D'de= bug') + p.add_argument('-misalign', action=3D'store_true', + help=3D'misalign memory allocations') + + g_env =3D p.add_argument_group('test environment options') + mg =3D g_env.add_mutually_exclusive_group() + # We don't set default for cachemode, as we need to distinguish dafult + # from user input later. + mg.add_argument('-nocache', dest=3D'cachemode', action=3D'store_const', + const=3D'none', help=3D'set cache mode "none" (O_DIREC= T), ' + 'sets CACHEMODE environment variable') + mg.add_argument('-c', dest=3D'cachemode', + help=3D'sets CACHEMODE environment variable') + + g_env.add_argument('-i', dest=3D'aiomode', default=3D'threads', + help=3D'sets AIOMODE environment variable') + + p.set_defaults(imgfmt=3D'raw', imgproto=3D'file') + + format_list =3D ['raw', 'bochs', 'cloop', 'parallels', 'qcow', 'qcow2', + 'qed', 'vdi', 'vpc', 'vhdx', 'vmdk', 'luks', 'dmg'] + g_fmt =3D p.add_argument_group( + ' image format options', + 'The following options set the IMGFMT environment variable. ' + 'At most one choice is allowed, default is "raw"') + mg =3D g_fmt.add_mutually_exclusive_group() + for fmt in format_list: + mg.add_argument('-' + fmt, dest=3D'imgfmt', action=3D'store_const', + const=3Dfmt, help=3Df'test {fmt}') + + protocol_list =3D ['file', 'rbd', 'sheepdoc', 'nbd', 'ssh', 'nfs', + 'fuse'] + g_prt =3D p.add_argument_group( + ' image protocol options', + 'The following options set the IMGPROTO environment variable. ' + 'At most one choice is allowed, default is "file"') + mg =3D g_prt.add_mutually_exclusive_group() + for prt in protocol_list: + mg.add_argument('-' + prt, dest=3D'imgproto', action=3D'store_cons= t', + const=3Dprt, help=3Df'test {prt}') + + g_bash =3D p.add_argument_group('bash tests options', + 'The following options are ignored by ' + 'python tests.') + # TODO: make support for the following options in iotests.py + g_bash.add_argument('-o', dest=3D'imgopts', + help=3D'options to pass to qemu-img create/convert= , ' + 'sets IMGOPTS environment variable') + g_bash.add_argument('-valgrind', dest=3D'VALGRIND_QEMU', + action=3D'store_const', const=3D'y', + help=3D'use valgrind, sets VALGRIND_QEMU environme= nt ' + 'variable') + + g_sel =3D p.add_argument_group('test selecting options', + 'The following options specify test set ' + 'to run.') + g_sel.add_argument('-g', '--groups', metavar=3D'group1,...', + help=3D'include tests from these groups') + g_sel.add_argument('-x', '--exclude-groups', metavar=3D'group1,...', + help=3D'exclude tests from these groups') + g_sel.add_argument('--start-from', metavar=3D'TEST', + help=3D'Start from specified test: make sorted sequ= ence ' + 'of tests as usual and then drop tests from the fir= st ' + 'one to TEST (not inclusive). This may be used to ' + 'rerun failed ./check command, starting from the ' + 'middle of the process.') + g_sel.add_argument('tests', metavar=3D'TEST_FILES', nargs=3D'*', + help=3D'tests to run') + + return p + + +if __name__ =3D=3D '__main__': + args =3D make_argparser().parse_args() + + env =3D TestEnv(imgfmt=3Dargs.imgfmt, imgproto=3Dargs.imgproto, + aiomode=3Dargs.aiomode, cachemode=3Dargs.cachemode, + imgopts=3Dargs.imgopts, misalign=3Dargs.misalign, + debug=3Dargs.debug) + + testfinder =3D TestFinder(test_dir=3Denv.source_iotests) + + groups =3D args.groups.split(',') if args.groups else None + x_groups =3D args.exlude_groups.split(',') if args.exclude_groups else= None + + try: + tests =3D testfinder.find_tests(groups=3Dgroups, exclude_groups=3D= x_groups, + tests=3Dargs.tests, + start_from=3Dargs.start_from) + if not tests: + raise ValueError('No tests selected') + except ValueError as e: + sys.exit(e) + + if args.dry_run: + print('\n'.join(tests)) + else: + with TestRunner(env, args.makecheck) as tr: + tr.run_tests([os.path.join(env.source_iotests, t) for t in tes= ts]) diff --git a/tests/qemu-iotests/common.env.in b/tests/qemu-iotests/common.e= nv.in deleted file mode 100644 index e565cdf40c..0000000000 --- a/tests/qemu-iotests/common.env.in +++ /dev/null @@ -1,3 +0,0 @@ -# Automatically generated by configure - do not modify - -export PYTHON=3D'@PYTHON@' diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group deleted file mode 100644 index bc5bc324fe..0000000000 --- a/tests/qemu-iotests/group +++ /dev/null @@ -1,321 +0,0 @@ -# -# QA groups control file -# Defines test groups -# -# Some notes about the groups: -# -# - do not start group names with a digit -# -# - quick : Tests in this group should finish within some few seconds. -# -# - img : Tests in this group can be used to excercise the qemu-img tool. -# -# - auto : Tests in this group are used during "make check" and should be -# runnable in any case. That means they should run with every QEMU binary -# (also non-x86), with every QEMU configuration (i.e. must not fail if -# an optional feature is not compiled in - but reporting a "skip" is ok), -# work at least with the qcow2 file format, work with all kind of host -# filesystems and users (e.g. "nobody" or "root") and must not take too -# much memory and disk space (since CI pipelines tend to fail otherwise). -# - -# -# test-group association ... one line per test -# -001 rw auto quick -002 rw auto quick -003 rw auto -004 rw auto quick -005 img auto quick -# 006 was removed, do not reuse -007 snapshot auto -008 rw auto quick -009 rw auto quick -010 rw auto quick -011 rw auto quick -012 auto quick -013 rw auto -014 rw -015 rw snapshot -# 016 was removed, do not reuse -017 rw backing auto quick -018 rw backing auto quick -019 rw backing auto quick -020 rw backing auto quick -021 io auto quick -022 rw snapshot auto -023 rw -024 rw backing auto quick -025 rw auto quick -026 rw blkdbg -027 rw auto quick -028 rw backing quick -029 rw auto quick -030 rw auto backing -031 rw auto quick -032 rw auto quick -033 rw auto quick -034 rw auto backing quick -035 rw auto quick -036 rw auto quick -037 rw auto backing quick -038 rw auto backing quick -039 rw auto quick -040 rw auto -041 rw auto backing -042 rw auto quick -043 rw auto backing -044 rw -045 rw quick -046 rw auto aio quick -047 rw auto quick -048 img auto quick -049 rw auto -050 rw auto backing quick -051 rw -052 rw auto backing quick -053 rw auto quick -054 rw auto quick -055 rw -056 rw backing -057 rw -058 rw quick -059 rw quick -060 rw auto quick -061 rw auto -062 rw auto quick -063 rw auto quick -064 rw quick -065 rw quick -066 rw auto quick -# 067 was removed, do not reuse -068 rw quick -069 rw auto quick -070 rw quick -071 rw auto quick -072 rw auto quick -073 rw auto quick -074 rw auto quick -075 rw quick -076 io -077 rw quick -078 rw quick -079 rw auto -080 rw auto -081 rw quick -082 rw quick -083 rw -084 img quick -085 rw -086 rw auto quick -087 rw quick -088 rw quick -089 rw auto quick -090 rw auto quick -091 rw migration quick -092 rw quick -093 throttle -094 rw quick -095 rw quick -096 rw quick -097 rw auto backing -098 rw auto backing quick -099 rw auto quick -# 100 was removed, do not reuse -101 rw quick -102 rw quick -103 rw auto quick -104 rw auto -105 rw auto quick -106 rw quick -107 rw auto quick -108 rw auto quick -109 rw -110 rw auto backing quick -111 rw auto quick -112 rw -113 rw quick -114 rw auto quick -115 rw -116 rw quick -117 rw auto -118 rw -119 rw quick -120 rw auto quick -121 rw -122 rw -123 rw quick -124 rw backing -125 rw -126 rw auto backing -127 rw auto backing quick -128 rw quick -129 rw quick -130 rw quick -131 rw quick -132 rw quick -133 auto quick -134 rw auto quick -135 rw -136 rw -137 rw auto -138 rw auto quick -139 rw quick -140 rw auto quick -141 rw auto quick -142 -143 auto quick -144 rw quick -145 quick -146 quick -147 img -148 rw quick -149 rw sudo -150 rw auto quick -151 rw -152 rw quick -153 rw quick -154 rw auto backing quick -155 rw -156 rw auto quick -157 quick -158 rw auto quick -159 rw auto quick -160 rw quick -161 rw auto quick -162 quick -163 rw -165 rw quick -169 rw migration -170 rw auto quick -171 rw quick -172 auto -173 rw -174 auto -175 quick -176 rw auto backing -177 rw auto quick -178 img -179 rw auto quick -181 rw auto migration quick -182 rw quick -183 rw migration quick -184 rw auto quick -185 rw -186 rw auto -187 rw auto -188 rw quick -189 rw -190 rw auto quick -191 rw auto -192 rw auto quick -194 rw migration quick -195 rw auto quick -196 rw quick migration -197 rw quick -198 rw -199 rw migration -200 rw -201 rw migration quick -202 rw quick -203 rw auto migration quick -204 rw quick -205 rw quick -206 rw -207 rw -208 rw quick -209 rw quick -210 rw -211 rw quick -212 rw quick -213 rw quick -214 rw auto -215 rw quick -216 rw quick -217 rw auto quick -218 rw quick -219 rw -220 rw auto -221 rw quick -222 rw quick -223 rw quick -224 rw quick -225 rw quick -226 auto quick -227 quick -228 rw quick -229 auto quick -231 quick -232 quick -233 quick -234 quick migration -235 quick -236 quick -237 rw quick -238 quick -239 rw quick -240 quick -241 rw quick -242 rw quick -243 rw quick -244 rw auto quick -245 rw -246 rw quick -247 rw quick -248 rw quick -249 rw auto quick -250 rw quick -251 rw auto quick -252 rw auto backing quick -253 rw quick -254 rw backing quick -255 rw quick -256 rw auto quick -257 rw -258 rw quick -259 rw auto quick -260 rw quick -261 rw -262 rw quick migration -263 rw quick -264 rw -265 rw auto quick -266 rw quick -267 rw auto quick snapshot -268 rw auto quick -270 rw backing quick -271 rw auto -272 rw -273 backing quick -274 rw backing -277 rw quick -279 rw backing quick -280 rw migration quick -281 rw quick -282 rw img quick -283 auto quick -284 rw -286 rw quick -287 auto quick -288 quick -289 rw quick -290 rw auto quick -291 rw quick -292 rw auto quick -293 rw -294 rw quick -295 rw -296 rw -297 meta -298 -299 auto quick -300 migration -301 backing quick -302 quick -303 rw quick -304 rw quick -305 rw quick -307 rw quick export -308 rw -309 rw auto quick -312 rw quick diff --git a/tests/qemu-iotests/meson.build b/tests/qemu-iotests/meson.build index 26658ce25c..67aed1e492 100644 --- a/tests/qemu-iotests/meson.build +++ b/tests/qemu-iotests/meson.build @@ -3,6 +3,3 @@ if 'CONFIG_LINUX' in config_host else socket_scm_helper =3D [] endif -configure_file(output: 'common.env', - input: files('common.env.in'), - configuration: {'PYTHON': python.full_path()}) --=20 2.29.2 From nobody Thu May 2 15:02:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1610805345; cv=pass; d=zohomail.com; s=zohoarc; b=AS0Qyk/+SwWbEa6Jwo1tiRtYLhF7akmFrOu5NUQvsj5JB8X9IwDv3fLsKrYKcyYf+D+VwE+2nR56jUmVLQYQ3oZ163VghfbvmTi9W2bCcRnl01JPtaySN+mRSJMTDAX5E03vjOblVLJXBgVtVzlQk+Fr5u30WkISNexmB+IXyII= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610805345; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=FtE0VJL6N4O93BLVx+z3eArBoVg82V4idyb1Sk5Ka4w=; b=V7buyUNkTMftQN6WCFZNkErQ6Jfh8Hi+rUylOaqYQTdhzsfaNDtnzWP22cMxWh/XrhxW+YX1P4SfyqANH2VXTi53xJUSkVylA0m2xVM6EmVl9c+d+4ByI4/FU6lzzJ+ufOjZfK0iL7h/FikS3o0p3WIEM76X6X2j73MSneEY6Ng= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610805345580436.30688493101263; Sat, 16 Jan 2021 05:55:45 -0800 (PST) Received: from localhost ([::1]:55792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0m3M-00053s-BN for importer@patchew.org; Sat, 16 Jan 2021 08:55:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltF-0003JW-BV; Sat, 16 Jan 2021 08:45:17 -0500 Received: from mail-eopbgr60102.outbound.protection.outlook.com ([40.107.6.102]:25243 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ltD-0007aO-LE; Sat, 16 Jan 2021 08:45:17 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM6PR08MB3622.eurprd08.prod.outlook.com (2603:10a6:20b:4c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9; Sat, 16 Jan 2021 13:45:12 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::214a:3545:368c:7ae8%9]) with mapi id 15.20.3763.013; Sat, 16 Jan 2021 13:45:12 +0000 Received: from kvm.sw.ru (185.215.60.72) by AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.4 via Frontend Transport; Sat, 16 Jan 2021 13:45:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=STI0ZzwvtkOweZ4HOlCo6YikKUIf+AIhQN2xF+Ce6/CGI7VEdYsCDJI5YTzoUzlTd+hwEcux7IzPFv+6wVIoVAmieh/ENFju1f/Qp8pDVcr86/pZ/aJYtj3SMfKRs9ipbTrCSV+ATZSQjLcyUsUyeVYbVPJ3I+MxkA8HNgZmmfk+i9cLw5lB+03oCe57IZtryfdD9jOOfQ2pdcmOASYH//hvldi248zREEABzGXF0zcamh0M2MoKL7k7sGub6LSGYg6GWF/a741DyIIoC5xxar8wP0tm/rOes6g4EcH6g0/JrqQRw4NVhDc1HYmCdai8YU+7cABnqvPaPcmAiPEAnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FtE0VJL6N4O93BLVx+z3eArBoVg82V4idyb1Sk5Ka4w=; b=YthnjLwiDPTopWkbelTncm4T0v6U1pMdVsQVqBJmKw+147hoiCHM9BaE/zJxo5lPQyhLZxxss/534jBCUlzV0K941mfRsfiqovQMmxnWRwjvNNVqCvLiFRqs7YRyptGFATOEN0JQvfwhwtTmqcUUBzouBq9AzVHiSCP+lKT+hGKZBszQlvBy665GFWu83en3LJj+/0SVDoAX9FCzfpXxVrkAGTQc1tg6/8GCIuebz9ENy0FXJa7oiUeyIt2HVhjKCbVfxKi9HTqpcmEoseD6O8h+jRgcYjB7/605d0dS0S+281B8ML1onwYJAC63U5Dtv9TIrXogXZDC1rjeq/k8rA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FtE0VJL6N4O93BLVx+z3eArBoVg82V4idyb1Sk5Ka4w=; b=K553P4yGU9IirwCitODzCXjqekXQ+7RfJgaDleuBNPdcnZkHrTKF/G1l2G9/EKzsTL9lxN+Xapd+TbxlFI6Rjp4J7846KIOuzT/szMVUpXY9rR3Y3+/4RvAioucQ8ylbZdxMDrmtjY462uuFQYvWPOvneMuzB3ZjI1v5MQ9umcI= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Subject: [PATCH v7 11/11] iotests: rename and move 169 and 199 tests Date: Sat, 16 Jan 2021 16:44:24 +0300 Message-Id: <20210116134424.82867-12-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210116134424.82867-1-vsementsov@virtuozzo.com> References: <20210116134424.82867-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.72] X-ClientProxiedBy: AM4PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:200:42::29) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 887b734e-17a3-4e2e-def7-08d8ba24f252 X-MS-TrafficTypeDiagnostic: AM6PR08MB3622: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:497; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: crKOTF91fMFvno7S+oCdapZ9OGbYTWzxHOk73+KsAiUahMgGRwdS57c2z9vEIT5uCabARb+Rya5hLEutK44O0qO2NirLvDC9GeS+meYdcSGNGxFyGCna4V2zuZsvqyv0sEYHnuqS9cpkHV0UFxZPkElQx/9YuPTalqKSvTeNiIk8gEM39t8LZ8ckbUE7OXEeQ12ubOXNXekjAE1Mc9WX1BccWHH15kehNEpUW2Qz4hIkmGGLygCLdgk17JRpFHjmuVQ1oGnEzlMbZ6HwM5/HIOh6tFVa1w9MHx0SQ0FIdISE4FbW3BvRqO+1/5pSJ84RDbhcyuaOxl33QXpoqhanWovCMBwd2Sww5aitLM0nNN4+akOCBjC6WdLzf90VzrRFXt20NGKM8RP8eEjbmOFulA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39830400003)(346002)(396003)(366004)(136003)(376002)(6666004)(6512007)(2616005)(6916009)(2906002)(956004)(186003)(66476007)(66556008)(66946007)(26005)(5660300002)(6506007)(1076003)(8676002)(4326008)(86362001)(316002)(478600001)(6486002)(8936002)(83380400001)(52116002)(36756003)(16526019); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?X4sXj2VWaN4NRVXV8uCrbeJDDwX6py7cf/dO/bYOyre2gh7HOhQhjuWuNEqY?= =?us-ascii?Q?ul7fYM8PKYKmQcXcJ7Yxdovj9twxDojWDatNqjPuku7VqIgTmdq8OktaTkMv?= =?us-ascii?Q?u3/OwL1OVkXvZAQHBMCttTKodxeMUtzcvhYjAgyW5I1XgFEng3Zjm2tJaW7R?= =?us-ascii?Q?7u0yDOUVFWV5rrqH/evgV/e/dF9t78LJnv93pb4RZDxIqE3+3nxG/ntiEg0B?= =?us-ascii?Q?+A8C6c13oQzKkWMYWiCthBu0KEvw1ysbmQ//DSURLg/g1UvcR+rBuoa5rvCs?= =?us-ascii?Q?p5aBvy3WFpUmsQUe625lehGhwWGZFycdQb49ve30seaTxjTpLJ7AH6nEQgHv?= =?us-ascii?Q?js/NVDAJQtvZdwuWp4ZxXu27whzlR9HYos90Me1mkNdNUHZuo4MExl36y03Z?= =?us-ascii?Q?ew1w6dXAt1c1PR9Jq4UM0gAaxAIE2tKpVERLYj/v5Y4I7N5vZSX1sP/8hfpP?= =?us-ascii?Q?qfUIw2/hrRxivAiXyzd8bfZvWd6kGMYfP7U3wDdCiXWzRKtEPyRhRabQ3+YX?= =?us-ascii?Q?lI9wZcacsvx+/hwNQ6x3iL5krsOwJFwK7wB1D6FXyMfmxDvR6/rqs24+fWJl?= =?us-ascii?Q?tk1cv/PkdBnMsjtBVEn7fCipXdaKEQxq8bbTiszls5qarURPrMxnwc2YhSDZ?= =?us-ascii?Q?RXl5FYujSHoFkRfSn7hCBs61rK7IgN6Eld7YMSuCV2sxpV7iBz+zLgkhxSTm?= =?us-ascii?Q?Rx3gNJzBP5XNOa0DJPd69xTCHN+u6ZoBDc4U22w24bIAzKIl3Awkq+3UtuX8?= =?us-ascii?Q?Qf6RNkCh8L1ia+lCuRpEesEGal9zXpvRkKCf+SR8XgPti0cj+yqa9SnQ69dT?= =?us-ascii?Q?EIW5enzf7NO3YR7S6HRsh3q3BzL5CLQRFO85Q8cvW5UsF3BX3l2/VAVG35HY?= =?us-ascii?Q?RJyalkAMhtpN0IM34QEUnwpF2piZVSsfnBGRfC6uwboOLEoh124V47ZeD2I5?= =?us-ascii?Q?1mOvuYJs25VvaYS2UqeZVefqWFMfpjdokN6jMigf1fXokkNFOyfC4R/nMCyG?= =?us-ascii?Q?pLI0?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 887b734e-17a3-4e2e-def7-08d8ba24f252 X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2021 13:45:12.1758 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JtQvLL84SOxvd6OeFzD3gFElFc2KCqyDRPeh0Qxir0YYLVFMYT8bxMCmFsGhZF5ePqx5PSMAAZkE5jDk/xL+E9oOQ1oep4Ks1otqhm4taH0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3622 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.6.102; envelope-from=vsementsov@virtuozzo.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" Rename bitmaps migration tests and move them to tests subdirectory to demonstrate new human-friendly test naming. Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/{199 =3D> tests/migrate-bitmaps-postcopy-test} | 0 .../{199.out =3D> tests/migrate-bitmaps-postcopy-test.out} | 0 tests/qemu-iotests/{169 =3D> tests/migrate-bitmaps-test} | 0 tests/qemu-iotests/{169.out =3D> tests/migrate-bitmaps-test.out} | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename tests/qemu-iotests/{199 =3D> tests/migrate-bitmaps-postcopy-test} (= 100%) rename tests/qemu-iotests/{199.out =3D> tests/migrate-bitmaps-postcopy-tes= t.out} (100%) rename tests/qemu-iotests/{169 =3D> tests/migrate-bitmaps-test} (100%) rename tests/qemu-iotests/{169.out =3D> tests/migrate-bitmaps-test.out} (1= 00%) diff --git a/tests/qemu-iotests/199 b/tests/qemu-iotests/tests/migrate-bitm= aps-postcopy-test similarity index 100% rename from tests/qemu-iotests/199 rename to tests/qemu-iotests/tests/migrate-bitmaps-postcopy-test diff --git a/tests/qemu-iotests/199.out b/tests/qemu-iotests/tests/migrate-= bitmaps-postcopy-test.out similarity index 100% rename from tests/qemu-iotests/199.out rename to tests/qemu-iotests/tests/migrate-bitmaps-postcopy-test.out diff --git a/tests/qemu-iotests/169 b/tests/qemu-iotests/tests/migrate-bitm= aps-test similarity index 100% rename from tests/qemu-iotests/169 rename to tests/qemu-iotests/tests/migrate-bitmaps-test diff --git a/tests/qemu-iotests/169.out b/tests/qemu-iotests/tests/migrate-= bitmaps-test.out similarity index 100% rename from tests/qemu-iotests/169.out rename to tests/qemu-iotests/tests/migrate-bitmaps-test.out --=20 2.29.2