Message ID | 20210827181808.311670-16-vsementsov@virtuozzo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=sc/3=NS=nongnu.org=qemu-devel-bounces+qemu-devel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA82EC432BE for <qemu-devel@archiver.kernel.org>; Fri, 27 Aug 2021 18:41:16 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 69DE760E78 for <qemu-devel@archiver.kernel.org>; Fri, 27 Aug 2021 18:41:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 69DE760E78 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:35446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org>) id 1mJgmx-0006Yt-8x for qemu-devel@archiver.kernel.org; Fri, 27 Aug 2021 14:41:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <vsementsov@virtuozzo.com>) id 1mJgRK-0001E6-Vb; Fri, 27 Aug 2021 14:18:55 -0400 Received: from mail-eopbgr50119.outbound.protection.outlook.com ([40.107.5.119]:12128 helo=EUR03-VE1-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 <vsementsov@virtuozzo.com>) id 1mJgRI-0006i4-RT; Fri, 27 Aug 2021 14:18:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O+quDkeEiAADGnV+DS2DG99MsxJ0G/+aHjTcio42hrnPNH/+0Hu1gDPwz/3OI4XMIgizJfPJ2A2N1kmXDUwA5dHwVQXu7aTrEVB5zZfd9n8vIhdlIooCMJtNjZR4hlgApJJF10puQTN33O+1+NIl0OeBCkgFlRNQWtBxalcheY7rb//4IwTL9QKrOVkP1VdKMTmCibxImd5lQev6AfeUP5MrtVtRSXxMq0usybWoDzvcKWJGxpTVj0y+oqeqhFqhWR3Qif0EQ7NPzcSvL2hQKmGoH5G5D9SE8TZXbIXQrZoUhhVDc3awWKdGz4rjiuslyRKy2WSR2icwe4HyoT3reA== 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=E9j3u3Y5yJA20jpt0Tg7DN9PUeiOPxctgrkd8K5IcS8=; b=jMgv0GmEMh80opQOygiIEf5n1B4LadR+B3Cc0/IBskGRkhgeqHWDydAWa3YnKjCb8QN5N40zg3+nfSJuJ3N+HVQBK99Y+u0zF9IemrC6SWKP5kqxt5h9Wf6O+iUn56akIfNhAK0tsJ4E85k+wmQEqNiFnUc/wX6840OQeO1Y/oGUz9TZHwwa5Vo/5RQI8KHoZhIYkW3S4F/2TnnkxzphSLZ/PacNiw03uiuyaRpAZt6DfETn1cMmGutl31/RVWsYtavp0L1mRYZuulobOVsUJ9mS4ksmfmgILiZrT7zjzWVEwGBAfj8GjxFfsNcVOMLvf5P3Bln2s2BPGqQIiwetbQ== 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=E9j3u3Y5yJA20jpt0Tg7DN9PUeiOPxctgrkd8K5IcS8=; b=MAzsfmzyEt0DCvS6q4txUrrQ+wJWS29zHb16i1+AFkT+uh7YZf0gnGeonXtbbEYrL16xAAvU4i1UORSUIq0GsQQMD0OkZmrbT3jZYxrnRdFekBYwjUNv2XpotXf72RLgdkpmz3Scr5RtWxNlJi4RNOxTo7B5gloS65DE0+6iVPg= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AS8PR08MB6774.eurprd08.prod.outlook.com (2603:10a6:20b:399::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Fri, 27 Aug 2021 18:18:42 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::2817:53b3:f8b4:fe22]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::2817:53b3:f8b4:fe22%7]) with mapi id 15.20.4457.023; Fri, 27 Aug 2021 18:18:42 +0000 From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> 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 Subject: [PATCH v2 15/19] iotests.py: add qemu_io_pipe_and_status() Date: Fri, 27 Aug 2021 21:18:04 +0300 Message-Id: <20210827181808.311670-16-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210827181808.311670-1-vsementsov@virtuozzo.com> References: <20210827181808.311670-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: HE1PR0402CA0012.eurprd04.prod.outlook.com (2603:10a6:3:d0::22) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (185.215.60.220) by HE1PR0402CA0012.eurprd04.prod.outlook.com (2603:10a6:3:d0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.18 via Frontend Transport; Fri, 27 Aug 2021 18:18:41 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1eee204d-4a9a-48cb-b49c-08d9698719e4 X-MS-TrafficTypeDiagnostic: AS8PR08MB6774: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <AS8PR08MB67747E574CB2E556458E1664C1C89@AS8PR08MB6774.eurprd08.prod.outlook.com> 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: YV/1t5ZbjvjhIUdHaFTuBssiRDGE49TgeXUAStRyeAQ+KK/C1veOWTeFthbYLDvPph8au5YUvw22brOMkYyWeGLjXnO2vnMb+dGt1terhDfto5SEcYijntbog9a1eZQrF3sdOxYtTz+IM+kCsG9HLFCZyS+64wzc0VQ6/0oLsKwm+gqnJ/GlbIKCpKZqPxp/Oi0WQk6c4lSdTGnm2BEX533xevaWRiBNSih+YvXOKWEjjVxUwfnvSSodHS9uUllNKmVZCfH8rDTogDmbzvGl7onLdMblCUyyIMEECf/8V1IJSGWlv6PFps8jRyaS/vImO3vPDmY8qKOiKVe9eE6P3Cvdvl0Kjh0oLUQiFUVmK4xK51sksLbn9LT81xRxV6Tp+0MjYTumqZ53GV9PsHdUveu+r2FocYE+tFP5Hf9CVYA5QTZMJCBUWSxoJmV1z6zBlaPwGSlq0f9pPF+ICg2cdzOdPcDjtTWtom+4rkeh5BMePnJWU4g1lAQ1mfNGZuFVozBzavDX62oACrBKTwlNWBd5inDmJ/PqtLdZ7Sm0LipQulHLQ4VcbV7W6n5hpQjUifvbe60yBr8vbfcOQ9WvCmZtikjCcZPJYKa7uXf6h54i/zyuHLi97Gn9hauViy0kUM/Js6NnO7K3Jpjfg/EXSTyVb8m3bP4wEwbm8zAYoMPyNGHmax98uMSFGEvFCBNeQAYkHNRYSCITqtgxgTCDog== 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)(376002)(366004)(39840400004)(136003)(396003)(346002)(6506007)(52116002)(38100700002)(8936002)(26005)(66556008)(316002)(6486002)(86362001)(38350700002)(6512007)(4326008)(5660300002)(2906002)(66946007)(186003)(478600001)(6666004)(956004)(4744005)(66476007)(6916009)(36756003)(8676002)(2616005)(1076003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NygT8K/IJwCY1GB81is1ZjZwWuSUh0E7s/g6KRoZ5X2KmRA9w99Iwb16bC6Y6Pw5Bg1Mh21RZhPDhBNL3wB7pg1lpXZ7BU0K2CBzf+GHtJO39VfMqqqr6q9vMFhZtcedQPN5m2OWo0NRk4Clq/SjrwX0EXbprOXpVki5jmIPEHla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DD6O9nkpyqbYCU1xmFn2kpOpVv3FwQ+ekH03Ge8KBsZae89VlOQAdlbIDpIqYksJ0rk/Poqd/wY59Vz5BcSWt6T/QBdCA X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1eee204d-4a9a-48cb-b49c-08d9698719e4 X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2021 18:18:42.6790 (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: kWJlF2IcgfsMV4h7jNyLNZMS0tbip8vczmySwmMwlkn6Duzc+ZOiCQ30WCumfdH/eJuSAICeN0RXrodJcszEfp3clnlHxHD7K77GZYZdIlQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6774 Received-SPF: pass client-ip=40.107.5.119; envelope-from=vsementsov@virtuozzo.com; helo=EUR03-VE1-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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> |
Series |
Make image fleecing more usable
|
expand
|
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 77efcb0927..ff96d8ef16 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -206,6 +206,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])
Add helper that returns both status and output, to be used in the following commit Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> --- tests/qemu-iotests/iotests.py | 4 ++++ 1 file changed, 4 insertions(+)