From patchwork Wed Dec 22 18:52:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Sementsov-Ogievskiy X-Patchwork-Id: 12697185 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45A8EC433EF for ; Wed, 22 Dec 2021 18:59:12 +0000 (UTC) Received: from localhost ([::1]:56250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n06pT-00008N-32 for qemu-devel@archiver.kernel.org; Wed, 22 Dec 2021 13:59:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n06jl-0008Nb-EM; Wed, 22 Dec 2021 13:53:17 -0500 Received: from mail-vi1eur05on2113.outbound.protection.outlook.com ([40.107.21.113]:12544 helo=EUR05-VI1-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 1n06jj-0004aJ-S2; Wed, 22 Dec 2021 13:53:17 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DbgzAPIJLQXp5EkBpBZ2UsOrnbOyaY/MU1cQK3CFEdDT3r8z7J7viSX1AkzrMUxEKV4NCbxONeljlYdFSuoqS72PlrJubdUe/2kRZw9Rp4aVFYL2vuqayCKmuLIS/ndUvOIXjyWH3lWxE+XRWzOhfD+gLMJtwcKJDEZuHM5Ah9I4BXIXbFJZs8SwGjtLcgKirqCPrbfvwGnH6Xr/LQV8M0Xq0kTb7edwSthDWo4Kc5rB7t3Pk2IYYsweKqUoS2yQvKZiLQvqvkEKrPCSKfWLjioRnJv8H8i+U2KvjvhpLQgfr981Hhh0oTe0jzyCQlIj3BOe4cn5lU9vuq71QkejSw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PHc8z4/P4SbapUhnft2QBalQ8QaZZCMZ4CbkKmxHqgw=; b=gmBoWCmeij406NrVJHqgTNbsu2nf2GSLbuYTU2sZV424+A6yB3TUEqhwG8L5M8CFw/WnuDi4BaYf/YfiCXqTVU8Mg9nG5RaRAVbCHegua2HZLsX1CyFmthOHM+5w+q8QIVNL4BmW91Lly0uZKQY80KJDDUlW5+ikNPxVQgCWErmJm7qBXkb8AWd8tJT8mTangTjseUBfOFyfJI9Qwiqrr+eMzKBiT1rFFxsgzWOo/ClQEMM18V2AqwACjMBE+Yy1HiXUdn5GLKm26+7xabpu6Yqqk0o7s+cMgXvKE2Xg6chxNINOIhepgpkGwDNjX6Z1QTetIEtPkN5kBx0r+zhs1g== 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=PHc8z4/P4SbapUhnft2QBalQ8QaZZCMZ4CbkKmxHqgw=; b=lLyjJEVGmuwSRwUAjd4LLI1WgTarb+JrUzqIlWHQYnTdKbSwPzh1J2JWQP00N4iJW5PkI/hw5ZX5P+KYjRVKH4iwsE+yAy8LQsE0XEY5mbl85Zh61YaMMy9RWxZv7Yf3+KIWiJ09gtnL6qB480Upx3VoSpaA/2fOj1DiqJ6zk7E= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=virtuozzo.com; Received: from AM9PR08MB6737.eurprd08.prod.outlook.com (2603:10a6:20b:304::18) by AM8PR08MB5857.eurprd08.prod.outlook.com (2603:10a6:20b:1d2::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4823.16; Wed, 22 Dec 2021 18:53:03 +0000 Received: from AM9PR08MB6737.eurprd08.prod.outlook.com ([fe80::b118:483a:d003:3112]) by AM9PR08MB6737.eurprd08.prod.outlook.com ([fe80::b118:483a:d003:3112%5]) with mapi id 15.20.4823.019; Wed, 22 Dec 2021 18:53:03 +0000 From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Cc: richard.henderson@linaro.org, peter.maydell@linaro.org, vsementsov@virtuozzo.com, eblake@redhat.com, qemu-devel@nongnu.org, Nikita Lapshin Subject: [PULL 6/7] iotests.py: add qemu_io_popen() Date: Wed, 22 Dec 2021 19:52:47 +0100 Message-Id: <20211222185248.466010-7-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211222185248.466010-1-vsementsov@virtuozzo.com> References: <20211222185248.466010-1-vsementsov@virtuozzo.com> X-ClientProxiedBy: AM7PR02CA0009.eurprd02.prod.outlook.com (2603:10a6:20b:100::19) To AM9PR08MB6737.eurprd08.prod.outlook.com (2603:10a6:20b:304::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 96a29b4b-c1c7-47ad-de12-08d9c57c48a2 X-MS-TrafficTypeDiagnostic: AM8PR08MB5857:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:317; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HSctenFqURKRIlTQE+OCaEt171Nzme5eCB1mKSATkgVROAscnjBUg/NXlA18Wk2eFLuAuCAMOANI+3tR/Orna9YIyL3cXiSqJHXUvBy3rn4jBBQGRFDSi2efvCgz7dhgp9iGmznyLjxYXpjfmQeP+tVgFuARlUAjgH9OnjXIdEa5y4+o8NuOyU6drsvHZOckBpkrU5jZCMzZ2pe/9gGGZAaD7/U4veIApVQiQIALcT0360hwqUp4DOignDtIBCChG6BF3KZQdZqXLyT1ZX4eashNBUQNPY86asxtjUcMEf08ePihr5Uj+BdHZ2pGMTWjpfGRkbOc+UToXMbGI/8dWqc/Fog1fRL2mLxGjt1vucPKOkzLd3tZMIaeYXyEFF2ucC05DDJKd8wfd74rRDsylen2GW0tM/KcinmxORFyGT/8PCVPdOhSuLYqlEPUcNLiqgkD7bTqTGAJ2kOWlza7k0l+kcj1FUAEv1IYlLMQ/w2xdCN78f0CcotXiUKpOHoahPbngEBHou+Px5zgoLVcfExZevUGVWh+4PGTePE9AWJ0iEkJDHgfB9KRNeepnX5mJcy6jiK7e5ojnalhrKMEsJ0CkQHvPDCE2bz9Km9F+2xp0ljykv25jHYDsiKMs9Nf6TiZS+Ub4jvlM0B0ULdq+WB89wVXTLplWks0W+P7jOMt7N+AKX3OPxdLA9kPOw0pbhN3j2DU21kzfYZ/4TimpA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM9PR08MB6737.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(107886003)(2616005)(6512007)(4326008)(6486002)(38350700002)(38100700002)(6506007)(66556008)(4744005)(66476007)(36756003)(26005)(66946007)(5660300002)(8676002)(8936002)(186003)(6666004)(6916009)(2906002)(52116002)(86362001)(508600001)(316002)(1076003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData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49YoYhvcavn/nu1EW8etgJbe1VxmMBiAwHn/AIuGzcLOIBDwAuXKEj6DvoKdMz9l3LWN6j9qeutSu1LFTBM5tPMpUw2QryKTBam0JERS/fT5i4WYf655aEoZJaCwyM68RYZiEeh5OwN3st2AVqPYDV+6MsVWRNzpcjZ+nKvAWn9vGUhOtr0jA/IiF0NhEuz4GVkJONa5jWd/rsvTp1cz/V+VI/EtTKB067K3CU6q018nF8GN8asT6gsj3JMo9hjoyRhhox7sc/Lms4+VkKUWbSroCkcxqsbSXrlY+/9q9tafZd6Ko2jLMuFw/C7PK5hk0nKOvn9RmEeBbsqE2f+co6iYXeIdDtbTWmLtD7itZ9c7eNh3IyhBoUm7aCe5F/Kcbvvm/3yj6RElaeHCzZJWG7jQSaLE7+Zsj9K66fSbSS3LKRy/R1rOzi0ijqm6dEFuflGaptWluOq/x7MPaKpPqE7y83rPlgu8zOCQjMI0fDrnAllYXYwRVy8FBUkmpbZ0JK2PXeTiIe2FpM5LebMoYDSbxRl0iuyYn/gCBeepUohIQK++e2Uzzm0IN0OgAb4Hu7Se0V5Py0d97PhOE75tGz8i8ZnifSNWXPqNlFIYw= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96a29b4b-c1c7-47ad-de12-08d9c57c48a2 X-MS-Exchange-CrossTenant-AuthSource: AM9PR08MB6737.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2021 18:53:03.5822 (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: AakZL84kvAqIGGIhPS+8TL+fXuSoTABNHBoyVJ745MKCMrAOEsWr09dCv99KzFCDdTHuEb6YcUTtl9s5YbhiaP118cY9b3LN71LWcOf3SRQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB5857 Received-SPF: pass client-ip=40.107.21.113; envelope-from=vsementsov@virtuozzo.com; helo=EUR05-VI1-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, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Add qemu-io Popen constructor wrapper. To be used in the following new test commit. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Nikita Lapshin --- tests/qemu-iotests/iotests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 1ed3eb1058..69d380e137 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -246,6 +246,9 @@ def qemu_io_wrap_args(args: Sequence[str]) -> List[str]: else: return qemu_io_args + list(args) +def qemu_io_popen(*args): + return qemu_tool_popen(qemu_io_wrap_args(args)) + def qemu_io(*args): '''Run qemu-io and return the stdout data''' return qemu_tool_pipe_and_status('qemu-io', qemu_io_wrap_args(args))[0]