From nobody Tue Feb 10 08:04:50 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=mail.uni-paderborn.de ARC-Seal: i=1; a=rsa-sha256; t=1614966618; cv=none; d=zohomail.com; s=zohoarc; b=ZuRIvDsMGa2mGNvnHHQttnfXMWCuARkX5sdtEtFW74RXkKT1ynvchWDv4b98WAMzNVdIv9SLRnaUjCH/66EE/GpU+ESQBynHZp9ffTqoOUab2XZXjqZX32e6dYOdYwvXTfNzdluvFkQlTTxhD4FWT7EmCvQbhin8py+JlAqQSDU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614966618; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=6KX/np2kYBi2FRrqUgXjCrmDCyo03sXCWalXTRZD9rE=; b=V4ANKb0CMCFk4Eh0yodhEbAdia01wnyJKFSEOCjexrjhCXtfLqudfJQXbgzeLcZ6QVXl9gtRYPAyeA9y303QO1EyPdSzvAm4jw/ABmxmMxJZTNMs/s8K7nRT2KHFCisa2ogDaDi7B3QC7Q/5ft+TKVNPD3Qu3UFM1tG/0PyCHEU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16149666188681019.115419552149; Fri, 5 Mar 2021 09:50:18 -0800 (PST) Received: from localhost ([::1]:51086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIEaf-00063J-QG for importer@patchew.org; Fri, 05 Mar 2021 12:50:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIDp2-0003bl-UF for qemu-devel@nongnu.org; Fri, 05 Mar 2021 12:01:05 -0500 Received: from collins.uni-paderborn.de ([2001:638:502:c003::14]:43386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIDoz-00013i-RV for qemu-devel@nongnu.org; Fri, 05 Mar 2021 12:01:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.uni-paderborn.de; s=20170601; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6KX/np2kYBi2FRrqUgXjCrmDCyo03sXCWalXTRZD9rE=; b=Z8Q3OKXrbp2jsZlxIunJWmei4z i6kP+Gv8oIt0/t/CGL5WFVkKIJkBrzO3PAw4F1YnU1XldjKxS6/6MoDUoehRBDChtM3vd5cg99BDq QA3NsQY08EeOFaIGxUh1b8ZwdFkjtx51to1rEOu6DhdrJP9D5zAZfUgxWzMbrMZlFnwM=; X-Envelope-From: From: Bastian Koppelmann To: qemu-devel@nongnu.org Subject: [PATCH v3 02/15] tests/tcg: Run timeout cmds using --foreground Date: Fri, 5 Mar 2021 18:00:32 +0100 Message-Id: <20210305170045.869437-3-kbastian@mail.uni-paderborn.de> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210305170045.869437-1-kbastian@mail.uni-paderborn.de> References: <20210305170045.869437-1-kbastian@mail.uni-paderborn.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-PMX-Version: 6.4.9.2830568, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2021.3.5.165117, AntiVirus-Engine: 5.80.0, AntiVirus-Data: 2021.2.8.5800000 X-Sophos-SenderHistory: ip=2a02:908:2214:e5bc::95d, fs=30601041, da=102572722, mc=531, sc=4, hc=527, sp=0, fso=30601041, re=0, sd=0, hd=0 X-IMT-Spam-Score: 0.0 () X-IMT-Authenticated-Sender: uid=kbastian,ou=People,o=upb,c=de Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2001:638:502:c003::14; envelope-from=kbastian@mail.uni-paderborn.de; helo=collins.uni-paderborn.de X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_NONE=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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kbastian@mail.uni-paderborn.de, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) when trying to run successful short tests from the Makefile timeout would n= ot terminate. Rather it would wait until the time runs out. Excerpt from the manpage: --foreground when not running timeout directly from a shell prompt, allow COMMAND to read from the TTY and get TTY signals; in this mode, c= hil=E2=80=90 dren of COMMAND will not be timed out Signed-off-by: Bastian Koppelmann --- tests/tcg/Makefile.target | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index 24d75a5801..34fd0e9f85 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -40,9 +40,10 @@ quiet-command =3D $(if $(V),$1,$(if $(2),@printf " %-7s= %s\n" $2 $3 && $1, @$1)) =20 # $1 =3D test name, $2 =3D cmd, $3 =3D desc ifdef CONFIG_USER_ONLY -run-test =3D $(call quiet-command, timeout $(TIMEOUT) $2 > $1.out,"TEST",$= 3) +run-test =3D $(call quiet-command, timeout --foreground $(TIMEOUT) $2 > $1= .out, \ + "TEST",$3) else -run-test =3D $(call quiet-command, timeout $(TIMEOUT) $2,"TEST",$3) +run-test =3D $(call quiet-command, timeout --foreground $(TIMEOUT) $2,"TES= T",$3) endif =20 # $1 =3D test name, $2 =3D reference --=20 2.30.1