From patchwork Wed Dec 22 17:40:14 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: 12697174 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 70AD5C433F5 for ; Wed, 22 Dec 2021 18:01:00 +0000 (UTC) Received: from localhost ([::1]:47160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n05v9-0001eG-B5 for qemu-devel@archiver.kernel.org; Wed, 22 Dec 2021 13:00:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n05bt-0001ZD-2C; Wed, 22 Dec 2021 12:41:05 -0500 Received: from mail-eopbgr60133.outbound.protection.outlook.com ([40.107.6.133]:36163 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 1n05bm-0002Zq-WC; Wed, 22 Dec 2021 12:41:04 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mkNpOPbA3fQURCBpkMglgj6HNXSgfQtqzkdXYpRYAv03Bd3PI93w52AZuEWAvRbMlsWv/J7op+3qTicCsYmcFEGjyokA8dkM6XyVJsNWboYaeFmJ1LXC36gi8Ccts39tqmTcVplPZsD+/0KfU+VZOQ0+gBhOm5P53OEu+CX23/krHvO4WXPZsdETFrOIx9D3D/B8gYjqTedwB2Wdx5OcFPBwDaYX8KOeMVehoMtgstXY6M6kn0kx9LiHisVpjIPWSGqinQyOVrFFIYDyNU1FjHDP4mjblpsK8C1AUUfanMRvCQ2icamis0KuCE90OhxuDSb0rk9kgHNTcOyjwGODsA== 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=mniKP/3EA5x2CHyTzvADdVyDSQ5tMhsYoqy4/Vu7G9o=; b=XColKTcMMJYhqXHJ9aVM8Aja6nrgWANUBZ5vCs+mnZ3XkNMesr7r+N0rNVUXdMWSR8UW3uITDfEiK1xLPzY7cWTlgMd9lEd84kSt5XVFxSv56VO9lKGnfAdLp+VKSS+ZNjS/rroFak3Ko8dSii9zoB7VXij/V2H2OusWtkcaWt0lnSNmZVu9LBEsYLPOB+EmAuRAtng3KoFJAeDadN3ZWs2PVeiPGvuzNBwTkgFG78Dv9UBKJ40r/sxnjVHBn9EMZxXR29yiX6YjOe/hqHckhMh7r0oATVj0mHDaSLcIbzWdz1hvA7piymXvh+RAyJ4z6WVzd8GfHj/VOS53EOvYdA== 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=mniKP/3EA5x2CHyTzvADdVyDSQ5tMhsYoqy4/Vu7G9o=; b=Yf2g5/Cl45FU28OAPKw4kDYhmgMyb+7wwvOCiO8vCBVO+m9QCQmhRKvdmxnNj5XybXOYi43wWQYE44CkUAurrXlpFPLe+HlxT4DwkB7gqlOZaqbhColUfmPq6nA/PTwZVYyqPi+4d4pqrYCD/1gI9HX3wjhSnGHyMN7HPw7bIFg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=virtuozzo.com; Received: from DB9PR08MB6748.eurprd08.prod.outlook.com (2603:10a6:10:2a7::16) by DB8PR08MB3964.eurprd08.prod.outlook.com (2603:10a6:10:a4::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.17; Wed, 22 Dec 2021 17:40:44 +0000 Received: from DB9PR08MB6748.eurprd08.prod.outlook.com ([fe80::a89f:c7bc:b9f8:fc3e]) by DB9PR08MB6748.eurprd08.prod.outlook.com ([fe80::a89f:c7bc:b9f8:fc3e%6]) with mapi id 15.20.4823.019; Wed, 22 Dec 2021 17:40:44 +0000 From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, armbru@redhat.com, xiechanglong.d@gmail.com, wencongyang2@huawei.com, eblake@redhat.com, hreitz@redhat.com, kwolf@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, nikita.lapshin@virtuozzo.com Subject: [PATCH v3 15/19] iotests.py: add qemu_io_pipe_and_status() Date: Wed, 22 Dec 2021 18:40:14 +0100 Message-Id: <20211222174018.257550-16-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211222174018.257550-1-vsementsov@virtuozzo.com> References: <20211222174018.257550-1-vsementsov@virtuozzo.com> X-ClientProxiedBy: AS8P250CA0017.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:330::22) To DB9PR08MB6748.eurprd08.prod.outlook.com (2603:10a6:10:2a7::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 93cd1802-2277-4f53-fcec-08d9c5722e2a X-MS-TrafficTypeDiagnostic: DB8PR08MB3964:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:337; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JNt8LnGgsuxYpoXIIwFNQFcSduBK08/q8JxGT+rLAFejnWsAmxATicx73Qcc0qXBNf7s+QAS4RTpFBQH/bEmG7/Fh+RaDCEC4JsQq7GZAD+cNay2NqDxh6x+o1wxND4VuDKOStzZphWtpR9IIjC67wxTcL3V67ED7fONKOAUJG7zYWdMAekNMRXeT6fCHPzYFFYQMocgxiPTKF58i8XLMgIl9xlvtISFfuujPUAni9f5ceqwM6CEEs441ujQLb2BQnfzO/WPj7gJjRiBFq8QufKKz0WQtOmTMDg1wzZW7e3GTTQLTYglaBoaI5g9VugHHftaB61L4FZpt4ypsP6k2kUFSUEufg2o/4yDjN2CKWkgJsGK4orbxeNTCInTKgjNDwq0Rtk75oAcIaEkCQQqfmRUW12GuZXy3wqofJg73gkMdfQRcfRhzy81Ezm61QOGsjjd5zFU6qV30uZCE/CFIV6b9C0AVHnJ1rP1ISzAOYFcg5MI9ptjEkiTMIuUIAHzeTk307nscrfrTdlXzI3wMVcjnlvhhyFrth1t6RITZZ5wPw8B7dzsf+5oLPFY4qo4eYWI2Ib8sYmV/PqGLroc2YLb6xG3mkoim4Gt4XlH8/lNnz68QDL11bEenx2RYZOICg59dvbOSQQzTxAfEdbaEaVnbbPQ9l6ehc0UR3cHXi1YzV+MdoGNqXXSIu32zeAZ0Ws84W3rriw4vkKJnjFqjw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR08MB6748.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(107886003)(6512007)(6506007)(26005)(316002)(4744005)(52116002)(2906002)(186003)(508600001)(6486002)(6916009)(4326008)(2616005)(8936002)(5660300002)(6666004)(8676002)(1076003)(38100700002)(38350700002)(86362001)(66946007)(66476007)(66556008)(36756003); DI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dY9MAxSq4ajcmYUyW/5RD7P5MwAk/6d0TrJNZBUDcIJup2RL7bm7BGUodiJ5Dd1HAUKPBpAbguUgwteQCVgYL0CoJxCRq8M23+lk0HcIanBvFQeQ/uX1cZqKf7aeognwKhuFzvTkOo426vTYPoYtcnAweAZ7kba1gM1SCEp32lVgHTezlMT63uTrG/moLtaK2LrYIad/F4/lIRjyWc7EXeebsdgrp6KrIj42ZbSmZa/AsRIjMmrK/J+C/7D9Z6Mkfew5ns3TQA0vDP6GPAtQrTyOU3yhSN77QNjsyiNI4TgvsnD39pgSiEiShrKJqnGesTJig3D2eDPtI2SPIAj0zMj0X60PqCisAzg4oI414Y24JUnpDUxEcXEHIvUH5kl9/HgWztFfm7CHRq3SNYyJOk6MDIyvM1IPtLr2MmLvB6z0jX42U3bJFIkiGzfZG4o6CAicoGSY5lHOmo+TkiS18mwHA7WY0Lv7xl0hOVtg95aYYOhc29MQjwz7mQhLoWCEK7SX8JN/f0hoWhtQzE6GdPCYnLueD+zGOyc9SmT/QPNfXlLj0YXUk7Dd1WyzyXY65TUkhz3mucU5X4ZYnZ9Akmy6qYewA09i5PNMOfHzts52nLP8S1yZOTtUgr3w3Vqachllq2wurtszVM02ZxuQfNo6DXcpMrPA== X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93cd1802-2277-4f53-fcec-08d9c5722e2a X-MS-Exchange-CrossTenant-AuthSource: DB9PR08MB6748.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2021 17:40:44.5536 (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: Q58bpxZsvKcnpyF8kjd/KbpHP/cRCxws7PxpfX7B5C5q3xyP3aGfNhLuDosGcg50eBoysT04dMMPSzfRDdIzWh5Q7AL637NF8vYA7cRCVRQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB3964 Received-SPF: pass client-ip=40.107.6.133; envelope-from=vsementsov@virtuozzo.com; helo=EUR04-DB3-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 helper that returns both status and output, to be used in the following commit Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/iotests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 83bfedb902..b5e6216517 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -238,6 +238,10 @@ def qemu_io(*args): args = qemu_io_args + list(args) return qemu_tool_pipe_and_status('qemu-io', args)[0] +def qemu_io_pipe_and_status(*args): + args = qemu_io_args + list(args) + return qemu_tool_pipe_and_status('qemu-io', args) + def qemu_io_log(*args): result = qemu_io(*args) log(result, filters=[filter_testfiles, filter_qemu_io])