From patchwork Tue Aug 2 09:50:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 594853 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp4201703maz; Tue, 2 Aug 2022 03:03:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR4q1D0hpw81hGiYdV+Od1W2bWMMIl8qSPY92XL4XwQzWL7Mtw3ywf1Qy0YMPW+9pDQWYTov X-Received: by 2002:a05:6214:1ccd:b0:46e:7427:2626 with SMTP id g13-20020a0562141ccd00b0046e74272626mr17760587qvd.101.1659434604449; Tue, 02 Aug 2022 03:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659434604; cv=none; d=google.com; s=arc-20160816; b=KQ8GrsnntK3RXor5qt8ZjgNiqVfAz7RIEQRr1Efx/CYPP53Gq3iu/XGNuwfK7gOv2Y cpjHP3qVJoULQB7sDVmEmau/3grE+7Cv/OmqSOGAsm7SrhKG5oTe9BNMqFJoE6/NMl66 VLPYvYBf6rMWNpd8p5mT4kuOaGdZS7jZGa4hyiCuiRVbLTK/gYAjMz33UpCyjPmPgj8g KVUWFi+9RU5cSmRpzAQEXxX+M5uKnzE/kQukRcjtDe3W3bTtoUdhMDwHUFDz9Lqe5zTS D1vOTTjoQSafF5hwmMT7unFQ/8jzPBvfJyaF7L6+BaOArJwy4A/Hnq6+N1DtVbf35Fkg XC/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=z6HPjsVGZtO92xLq+sdxQwAMWt569NUcAMZ4ONfdk+E=; b=0AEFkSE+6lSaqoeZqRaMiW5AH7FPNTgwNo9hSylNsG5AXQoAZQvjUDaVl/0p3qZgdm HzFn1wd5+OQ0PzXqRdoGF8QRs3p4YFwFgWqqSYazJiiultXGacRyvju0F0X6WZWlTrDO oQdD6nBTl1VNQbw7SDadyQXxKuiCI1l5vFSCA1kGFrX0L3CozyWDVQWF5HSsw6s9sMso hp27nvBBzISv5YaW8P/zVY0cZjYjZaVujqBBkUfo5nWsE6CJIJ7gWNSFuaB1bDyaUjkP EXB+87nd47pJo7XthpVQJhRM4CnF0JeujR1xXJueLOamlrO8zskOK1iUR7pNVXrdv5xB tRrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ORaO7+qh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bs40-20020a05620a472800b006b8dd12b4b5si179845qkb.300.2022.08.02.03.03.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Aug 2022 03:03:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ORaO7+qh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIokF-0005Lf-UL for patch@linaro.org; Tue, 02 Aug 2022 06:03:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIoXs-0001ZX-2A for qemu-devel@nongnu.org; Tue, 02 Aug 2022 05:50:36 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:34753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oIoXq-0002WK-Hd for qemu-devel@nongnu.org; Tue, 02 Aug 2022 05:50:35 -0400 Received: by mail-wr1-x42a.google.com with SMTP id j1so8785220wrw.1 for ; Tue, 02 Aug 2022 02:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=z6HPjsVGZtO92xLq+sdxQwAMWt569NUcAMZ4ONfdk+E=; b=ORaO7+qhdJM/C9XoyX3QrS23RSo91AzkIybJbXO+6wnkzVdIDCtIuHNRaeeRlUKuC1 5baYida1gS4I3LM7EEI6l5zhub6RiinR4gGS0sHTkKsSgt2snVK1hnj59tXqygy4smGW YGDyZuqitXFG5W0TtnUixUAeGMtY6/uCyeu9zAafnLVgaD4pDlH3WrqDk9kgqJI/1QLU 2TCdK58kIXPvSyRV39vkfe3yPUQw2X76JvI62C2AVGXvri/j6ZGngyPXSno/ugLYcuSG 4txBXZfBZPp0LMlBqKTR5qaOXZh5nf9ymyIh6hTjJ0XG6HBVTbwea4C9vueSJH2U4rG2 Yy3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=z6HPjsVGZtO92xLq+sdxQwAMWt569NUcAMZ4ONfdk+E=; b=cs+TIXbbXdar+mEHTVMNWBRO15Jx+HvV58T9qLyRuTjWoLZJp0Ooxp5hUUO/e/a5jU 8oOoCfkfOzE7IbgjiHH7zs7Y1eFPqeepe6LRauXSH9NJN5cYPZsRFB//kRBUogN256H1 K74O6dplkaSLPR8ZD5EMI0od2WQLipcQQ7AsmIWlZ+VnANivus4xRcJL1uDBNadGGC2i 6q2PunCf1xow8N4GQZunV6/qAb4Unnl9gAfIX6QPz0tAx1WPO38TTXGWuYrDMIY/nCjS J30URRCL4uiiEDrirC/IF4QXte8xAzBpTmdGb6dVJxQ0I1un8rQjqD2tkuwd2YXJ3D0M gRSQ== X-Gm-Message-State: ACgBeo2b1UuoOteObJqS4pz+ddsTKO1BtWVCxv03gLN9iO704YAXwtDH 1CpRus+7CyXqBXIL3QkV0gN0xQ== X-Received: by 2002:a5d:684e:0:b0:220:63df:3760 with SMTP id o14-20020a5d684e000000b0022063df3760mr4593291wrw.508.1659433833224; Tue, 02 Aug 2022 02:50:33 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id i5-20020adff305000000b002206203ed3dsm6805777wro.29.2022.08.02.02.50.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Aug 2022 02:50:22 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id F2B681FFC6; Tue, 2 Aug 2022 10:50:11 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: slp@redhat.com, mst@redhat.com, marcandre.lureau@redhat.com, stefanha@redhat.com, mathieu.poirier@linaro.org, viresh.kumar@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Thomas Huth , Laurent Vivier , Paolo Bonzini Subject: [PATCH v4 14/22] tests/qtest: pass stdout/stderr down to subtests Date: Tue, 2 Aug 2022 10:50:02 +0100 Message-Id: <20220802095010.3330793-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220802095010.3330793-1-alex.bennee@linaro.org> References: <20220802095010.3330793-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" When trying to work out what the virtio-net-tests where doing it was hard because the g_test_trap_subprocess redirects all output to /dev/null. Lift this restriction by using the appropriate flags so you can see something similar to what the vhost-user-blk tests show when running. Signed-off-by: Alex Bennée Acked-by: Thomas Huth Message-Id: <20220407150042.2338562-1-alex.bennee@linaro.org> --- v2 - keep dumping of CLI behind the g_test_verbose flag v4 - fix overly long line --- tests/qtest/qos-test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/qtest/qos-test.c b/tests/qtest/qos-test.c index f97d0a08fd..01a9393399 100644 --- a/tests/qtest/qos-test.c +++ b/tests/qtest/qos-test.c @@ -185,7 +185,9 @@ static void run_one_test(const void *arg) static void subprocess_run_one_test(const void *arg) { const gchar *path = arg; - g_test_trap_subprocess(path, 0, 0); + g_test_trap_subprocess(path, 0, + G_TEST_SUBPROCESS_INHERIT_STDOUT | + G_TEST_SUBPROCESS_INHERIT_STDERR); g_test_trap_assert_passed(); }