From patchwork Tue Jul 26 19:21:42 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: 593484 Delivered-To: patch@linaro.org Received: by 2002:a5d:6682:0:0:0:0:0 with SMTP id l2csp2908897wru; Tue, 26 Jul 2022 13:00:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t+i/rVd0O4j6ACiLSy0yoH+DQup9+OgxUECtxnRkbxrqfz5NcnP3o0OdVWsh/M/LXt5+qI X-Received: by 2002:a05:622a:cd:b0:31e:f195:6196 with SMTP id p13-20020a05622a00cd00b0031ef1956196mr15956636qtw.95.1658865618841; Tue, 26 Jul 2022 13:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658865618; cv=none; d=google.com; s=arc-20160816; b=utLz5fLCKIP1El0Apkp5xRMa0rBApr6zJuOJwazoqZc6Gw6d371hAZ2Z/3HSvK3hyI a8X2zo8ur/QR19pHoJNVyP89Krj5ltErUEhRQ1JmyspaXXUVEScxmN6rTr6CYVw0TFKm kE0ljlnXL4xF+30g7ZpIDRrdhZxUqrxw9DZbUFpby2GR1O4inqAiqSrOs7IC2PE+yRnC 87xWpbaiZUIqlWjIw/2ndM2PVd9zBSNqYLL1XAAenF7YdJjjUjm16IwxhVHQxYDFI94X KacqB1LLJWLW6BEHK9zg1ZhashxENjQh/vjqAi716BUrvzPrNZCJTZxBVUqvZkeshUYx PrsA== 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=Pe5Zimqd2c5xifMUxUMxyry48TVU96KwaVMb7LRHl5I=; b=J+6obFvBzqrefnAbL04Evtn2vDG/TKanCDegd5e8pR2WpRsO1IyNV3SogM/EmWdItU hEn4sagEajN8Aa0k2hYSHlWFBphxHPO8S47TFYdCsvnMTU1GvEk759325qq+ruQEB74n EqulPvdosuoA17rS+V6CkT8AdrV5LYjm8xU1Ze1/vjJAOlxUfTxRN91wGkmAcNyOymcx WIMkTpCDeVSuIuGV0X4MzvPmODSgxk3YTRzYDD+gALD2Att3xkXrAYCkdv8AtqB/FpBG Rk2cK7ONOi1r2KwWZiokF2cH7OCjaYLYhaAXNrQkUUlTM80i0Cp63iZRfpk5cAmzLrFu dRsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zwzj80eC; 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 jp14-20020ad45f8e000000b00453c887d73csi10516440qvb.413.2022.07.26.13.00.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Jul 2022 13:00:18 -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=zwzj80eC; 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]:57940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGQj4-0004bq-9s for patch@linaro.org; Tue, 26 Jul 2022 16:00:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGQG2-0006Yn-Pt for qemu-devel@nongnu.org; Tue, 26 Jul 2022 15:30:18 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:34668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGQG0-0003aW-Vs for qemu-devel@nongnu.org; Tue, 26 Jul 2022 15:30:18 -0400 Received: by mail-wm1-x329.google.com with SMTP id r1-20020a05600c35c100b003a326685e7cso1301181wmq.1 for ; Tue, 26 Jul 2022 12:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Pe5Zimqd2c5xifMUxUMxyry48TVU96KwaVMb7LRHl5I=; b=zwzj80eC+gHx6S0MoXibeXV7C+sjg2dr+TLUyHkjnGt+Cg2Sf1+KAv5Ggc9hq3E1TV 0/lOeuGlI/RQ4BEoQHchHdjXTI6VdskcHTY8KmUxGxsRXvC9rOVlIFPc5LXZH84yvodX PLC5pN3IsB7mYgsbnxnyqtIgl08yCRvL5titeMOfiLRIg+zMd4UuMhcw8FmwgydutLdR B0YQ6Hqc8zSHqFQxZ2XnzCYDsG2/ey8l6P+ABSzWCalfgb67bFleLsaQtVacb6hsWsfz bLRSBCxgHapMa3oa4z7fmbZshin1lg0kgE+scV37f2TP2iC57u/OXa9LHVaDUl21YB5d S/oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Pe5Zimqd2c5xifMUxUMxyry48TVU96KwaVMb7LRHl5I=; b=SPTkS9rT5Jcr15IVQOp3uz1lVOrNwA7QJhW5AmbyCJPvQSngcKoI72XvJogL9JA02I GMo5BnnZYz1QEnDiWdcTKXvPhFldTzI5KikEAf0ri0x0ri7tbZpO1Wce+L5MqAG0o8oO QH8196tAqzi8j5Brxk/8dXAZWE1emwBqo+Z2EM8zEOzL+fx6u0m5g6e9nqOJCALZ5Rcr ALFVP+mCkrA/KZc+PiIJppC+9U1ArDVkMpP9lvd2VJ6EdwDh8hjxM+gyMyZsvUhWd3xL h9x/7KpaWUyEly5OOU8ZyG2jWBVw0i+Zyq6Wsc0/pl82W26Ra/R2r9vjLfCqHukO1dKw GSBA== X-Gm-Message-State: AJIora8PcaqkDG2g/mx2x6CHAJlY0ceUf+kT3SZfrqA2SB6j+Gglgcqr Jb0Tsa0JlX7iunG77eC8E7hxvA== X-Received: by 2002:a05:600c:600b:b0:3a3:1176:222d with SMTP id az11-20020a05600c600b00b003a31176222dmr510171wmb.42.1658863815304; Tue, 26 Jul 2022 12:30:15 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id p15-20020a05600c358f00b003a32297598csm23918246wmq.43.2022.07.26.12.30.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 12:30:14 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6E6961FFC5; Tue, 26 Jul 2022 20:21:51 +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, mark.cave-ayland@ilande.co.uk, jasowang@redhat.com, =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= , Thomas Huth , Laurent Vivier , Paolo Bonzini Subject: [PATCH v3 13/21] tests/qtest: pass stdout/stderr down to subtests Date: Tue, 26 Jul 2022 20:21:42 +0100 Message-Id: <20220726192150.2435175-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220726192150.2435175-1-alex.bennee@linaro.org> References: <20220726192150.2435175-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x329.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 --- tests/qtest/qos-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/qtest/qos-test.c b/tests/qtest/qos-test.c index f97d0a08fd..7e1c8fc579 100644 --- a/tests/qtest/qos-test.c +++ b/tests/qtest/qos-test.c @@ -185,7 +185,8 @@ 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(); }