From patchwork Tue May 4 10:02:05 2021 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: 430863 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3656063jao; Tue, 4 May 2021 03:24:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6xa0I75nGr++zUSgnNteXMnY1yKCUWZ8aGj97rzC7PjIZFD0QnpgNTcjjPZX4oA4VJ/J+ X-Received: by 2002:a37:e10d:: with SMTP id c13mr24197069qkm.322.1620123869223; Tue, 04 May 2021 03:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620123869; cv=none; d=google.com; s=arc-20160816; b=vBjnDMUC338Vi4Dqu8PF9zojXHuAYL7crqyInk8RuZWadsQRyHg3vsOkaKBBJbI7Lo Pm+V0k1pLKGdKp6fCoqK/kgFaQ2pOhhcwJLZgjVO2Tuk68Ih0/0mlCq/ELCjI5w7DDn6 6sqIkDi2mzJRkiFaCzJdXfR6lnbEZsU3k+pmvz32O7z5Nxg0BYsBlxFedeEEk9DLs+dP liNr2bKPuU8a8NStg3jZUfbPpm/C6yu085jhXF2pfVpxC0kH3hg/PhZB1bTcsE+KnABh XhYAHf1eSNc4ekRtvK2FT8UOgVzkpeMamv5GDYVviQf0FFMUL4BYWyOnlbjoEW6gES/D hPGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=VsOEBZtB0HF2JImaMnITvaw+tRLQeXiNM3E9i7SwoP8=; b=l7VId3VyRNpc7ODi5FoXC2qjQMm/X2qq7duoRDkYtfepVYkpPUVKMEgy+mmX0Auqnt gYIFmQrUsxOUclz9Mb48vL+k3HA+3LO9JwadLkKe5Y+TmzcswF6s/e6ouKFjsPyfZj6O yc26lAa2vGAKBJnteiXPMbjV66BgLf58MBkQzaYK8rQy+Jkg58f8RPv5+NXuPC0W4Hec QVuLrkUo5Q7gIz6CcMMSXRVM9NO6s6UGeOB2bsXi2rfKJ9FlAGSsGEXbCtgn8TwKIw6S z/QNkcPw8agy/5mSARZ6IF5SdHz7CRWJanc7r/gWXuTG4MQh6XrN79d6gBCxXUoJ1ZuS hw7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HCT2ZZIj; 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=fail (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 g4si12250826qvi.219.2021.05.04.03.24.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 May 2021 03:24:29 -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=fail header.i=@linaro.org header.s=google header.b=HCT2ZZIj; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldsE8-0003JZ-LB for patch@linaro.org; Tue, 04 May 2021 06:24:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldrzw-0002eU-NY for qemu-devel@nongnu.org; Tue, 04 May 2021 06:09:48 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:56106) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldrzq-0006p6-AF for qemu-devel@nongnu.org; Tue, 04 May 2021 06:09:48 -0400 Received: by mail-wm1-x32f.google.com with SMTP id i128so3027537wma.5 for ; Tue, 04 May 2021 03:09:41 -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=VsOEBZtB0HF2JImaMnITvaw+tRLQeXiNM3E9i7SwoP8=; b=HCT2ZZIjEzwPiuoRYouhafiSUVh8poxDZpaSYLY1d+sBdEDGdHnO+jlsLczns1UjZz nugmWKtjjqeV50wxCR7ck4L3Fyam/3Di7z8jvm9yItBqrPWCI2HcOZ7HaNrxWPe0VoYw sUCOVs02fTJmqzeNr1l97bSPfQPr2HgwC3T2phEZuJ4NBULbHXIuwWf865igmOkUSkaE s8dgsoWZahReRTY5lwK0zLwr3Ngg17/ziW//1Bo3exLHIdg50nz0S++X3lJBBq2YWPU6 4UbByNAk8DoSm/32ph9jrqpGKxvZUlDPqSgRuHjiaYuGHF89ENXKOwL0eomNaLRX8xly yO3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VsOEBZtB0HF2JImaMnITvaw+tRLQeXiNM3E9i7SwoP8=; b=pbiImj2x+Mst29RIAHrju40/AgIjbg8cHjjmAyxOKWc8Ksh29kFHIGsukuv4EEBjhv 8qXCyDU1DkTc4RczxtY/l6CpaDkr9GKuErctnHzFEoWZrx/CMgE9qCh00cTh6uBmzVfF 5Ch29UXNwtzYJ1A6ex0ADtAr46LF/D9oVfk2e6oveeYpJDE5pB1xO/ZzetzEeryK9V3k G6XhjAgutlkaL59IRqOTClwN6t19O441FLeSQgOXq/BJKOKIBtG8hsH2K5yIhFsU57oP iQG1QDQzTRk54pTwHzxVfc9642oqdzcbcULM3GHy+ABI18C81cRwRdATXrA/B0NFoU5f xTsQ== X-Gm-Message-State: AOAM531e2b5p8rFb+ZMUNI6f6lyhPaFELi8NYxxhuXjv97Hy3b3aoMV/ L/QT6fUgrzPGs0IRWnuqH8+TUg== X-Received: by 2002:a7b:ca42:: with SMTP id m2mr26263966wml.67.1620122980972; Tue, 04 May 2021 03:09:40 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id o15sm5851734wru.42.2021.05.04.03.09.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 03:09:30 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C50431FF9B; Tue, 4 May 2021 11:02:24 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v2 12/30] tests/tcg: Run timeout cmds using --foreground Date: Tue, 4 May 2021 11:02:05 +0100 Message-Id: <20210504100223.25427-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210504100223.25427-1-alex.bennee@linaro.org> References: <20210504100223.25427-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.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 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: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann when trying to run successful short tests from the Makefile timeout would not 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, chil‐ dren of COMMAND will not be timed out Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée Message-Id: <20210305170045.869437-3-kbastian@mail.uni-paderborn.de> --- tests/tcg/Makefile.target | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index cab8c6b3a2..b29fae4630 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -43,9 +43,10 @@ quiet-command = $(if $(V),$1,$(if $(2),@printf " %-7s %s\n" $2 $3 && $1, @$1)) # $1 = test name, $2 = cmd, $3 = desc ifdef CONFIG_USER_ONLY -run-test = $(call quiet-command, timeout $(TIMEOUT) $2 > $1.out,"TEST",$3) +run-test = $(call quiet-command, timeout --foreground $(TIMEOUT) $2 > $1.out, \ + "TEST",$3) else -run-test = $(call quiet-command, timeout $(TIMEOUT) $2,"TEST",$3) +run-test = $(call quiet-command, timeout --foreground $(TIMEOUT) $2,"TEST",$3) endif # $1 = test name, $2 = reference