From patchwork Mon May 17 16:10:01 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: 440146 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1231979jac; Mon, 17 May 2021 09:16:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz81b697fBIHXHzlRSSYTTLj7NfVzkYYBvOQ6bg4Ucz3GmJyeuG/2I6Bi4TlKiLhPys/o5O X-Received: by 2002:a05:6638:344e:: with SMTP id q14mr762317jav.47.1621268167360; Mon, 17 May 2021 09:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621268167; cv=none; d=google.com; s=arc-20160816; b=YhFwS99nMAnoVfgpf+Yikv7iFKr7a5i5iz62IkAnsP7+tnJMtJM2I6FMFx6GT0JE4o 29sYxvnjAnk83dFbnobKSQdMqhLjyg5RCrAQRmRxZzo1IvxyHYgpDHnUIGQMMhi88Ooa d1JAyQKIrfTG46B1Lc5Vj/vExRUcU6j3D7XXyyUeplNz5xa+QWZK30RTt9YWMz+C5U+6 hKN6wQt6WMJnoFeI4lPVOa7RmmfYnp/ZP/N8aFmLS5UOkJuDEHZ1h8NEoqscs4coK7IY p9xlpLskKtHNfLTv3z3Hx32kuyV66MWHWsRAwiGUpIt+mqEehfjN6SXyElolfagXUIlv Royg== 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=SOwWByj9Hv79uAoR3pk2Na/zMM2B+Ft68GAsD76YMDs=; b=dvyMip1YwJMOX9BvUpAqiuiXn4GaTTsop51bsgyqnNWmzA6MuA6FJDbBlMckIE8cVz VjD2y/Sks/SpqqI8NSkUjtck6f+guc/XlnIUY/nM7/pN2gSA6SE6SDtuuJT0dxc57sDQ ukRk2R+GsdZI6Xvfg+0i4gd415j5hWe3lkaG8lTbicB541fFN+qMemqYT6dD1dK2xbJB BhNy+5AOi9VY0bP1fm5j/20O9BfTb1dZPwGNH8WHDHEHZvDK0NZ1I+dfxa8TyNo8X6AH ZTyz+7a8PC0Xtd18dCuoN+3+9Tm80wYG1VSCbOd/f4TiWUoEM1qklgTeVyrneUFdr9K0 gOow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=m5kdpHyu; 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 o2si5029274jaa.70.2021.05.17.09.16.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 May 2021 09:16:07 -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=m5kdpHyu; 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]:46446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lifuY-0000X8-Ll for patch@linaro.org; Mon, 17 May 2021 12:16:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lifpD-0007Og-8o for qemu-devel@nongnu.org; Mon, 17 May 2021 12:10:35 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:56273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lifpA-0005yu-GN for qemu-devel@nongnu.org; Mon, 17 May 2021 12:10:34 -0400 Received: by mail-wm1-x32d.google.com with SMTP id b7so3302951wmh.5 for ; Mon, 17 May 2021 09:10:32 -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=SOwWByj9Hv79uAoR3pk2Na/zMM2B+Ft68GAsD76YMDs=; b=m5kdpHyuVO9axp0VY4KcVWIAZKdDSOoPpTS5FT6SsGp/fN12q54Nn4g8GytekdU9zB pp2zWoPcJ5djDLV+Wu9LucUT0TU95cXSn7iHvJdrfyZY1kfp/NyeB7c8akzSJUEo//hP 7S2beQU2N2nE3eBGUfELN6rIqBrGv53a1mRMkxLTZuycpN1LM0yYFYl3scR9qLY6W7YU Q2Jwlnr8cmgEFAGYjxtW8zhGfw/Kbx7qrdhoSyKryvso0v8sSX8VCsHlMRgBO2UbxxQT r699VrVQ67knWBTg8GNRWOCaY5C0pcW/foQckM+zMxMZjmT98uKDJ/FO/4BBIh/8LpIz BUrg== 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=SOwWByj9Hv79uAoR3pk2Na/zMM2B+Ft68GAsD76YMDs=; b=KX/9ujvHQyMSjuEkvdgUxMVHOYIpce4S+xwvor7Yfhdx8U6WaZdNyGizZSOnJvZEHY KvoyN6AyPOyUbni6pSgt2TRrkTMQQYqgvWW8e7LXN2yYWSPd3yf6l9H0KCxG8/fuCmgp MpF9J+MQc8Tm7AWf9KCAFYsnG2k5bHTNBDhXSE1pFOeY2PbxBpoyk5N/2VV6JpxbXBas ZctU8ah5KTLUK3QmKOwj577wAvjYMjxehjK1PzPYjupYioP9pNaaDtgmC4fmPhte9/RQ Bspu0ZAv6PkO1W54xZq5coZ0Pv57TwETBOTil6sfeROQnnwzPy8okKAyiSS549WtlMvP tekg== X-Gm-Message-State: AOAM530ksfyjXQxZV9k+Be4m/kwFd8qCjqbFtqybrYWTsCk8sYyLhTM7 YWHdEJZHwXxCEVCvdqsEX8VYOA== X-Received: by 2002:a05:600c:190e:: with SMTP id j14mr371904wmq.145.1621267831082; Mon, 17 May 2021 09:10:31 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g11sm17805818wri.59.2021.05.17.09.10.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 May 2021 09:10:27 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id CDE5B1FF96; Mon, 17 May 2021 17:10:23 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 08/29] tests/tcg: Run timeout cmds using --foreground Date: Mon, 17 May 2021 17:10:01 +0100 Message-Id: <20210517161022.13984-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210517161022.13984-1-alex.bennee@linaro.org> References: <20210517161022.13984-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32d.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: Bastian Koppelmann , =?utf-8?q?Alex_Be?= =?utf-8?b?bm7DqWU=?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Ma?= =?utf-8?q?thieu-Daud=C3=A9?= 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> Message-Id: <20210512102051.12134-13-alex.bennee@linaro.org> -- 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