From patchwork Wed May 12 10:20:32 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: 435485 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4695854jao; Wed, 12 May 2021 03:34:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJkZjcJsWMB347WDvckVd36EwYN6JF59PrYxQVTxDSZfMH48pdjfHqC+NPjO803qu0fdjs X-Received: by 2002:ab0:620e:: with SMTP id m14mr31556092uao.2.1620815673022; Wed, 12 May 2021 03:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815673; cv=none; d=google.com; s=arc-20160816; b=b5l8N+ToqIOmIWRk/JNVdhnMxCt1Eacn7icnnudZDuesr4ACtDX6NUUqimkODiXOw7 snKmYgZ6lzzzAwzC5dMZf+S4kR3Vl1pxxfrPL5FNl9tc3Xep6nuUMahFssx3eW2XHkPs aydgQS31qVOi0Ce5pXBcciiYURw79Qsyqnc9zLxJCST/XjKLgwTvmbcCeYU5mvpaQXhD Eek41Bgu/zTtWM5+QAZrH4YGDDyfsuegKAUYDtRDgfF5JujcLpwBq+zQTZ4kqrfQt5KC sU5oU0kNivcAKUsRG4cHFbyg6iXrDMwhLOFbSkDOoWR9gyzTuZJL+69V+ERs6KmeZP4Z imUg== 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=pCMEZCKIZLSEB2mNuSt4oT+Z8XHsHn2xg5TrInxhDvtRYCL8yOTYU0Po0XYScH1jyk 6s13skocfbobboHTgP+UOBzes8w9SQp38+S4x8kz5eKUvtiI4iHR9T757ii9n/Yknz9I CEYbMxCqkG5+qN4ApNmS1TgUOdoWAhz1QL5bma66fgxqR6UBFYXdsK8kOACgB7DKh1SG B1lKgFRge5u7qqhB4X2Md2yVCphI9Dkqo6cmOb6b72Ibo7Wi4ocsRFOywSqm40uAr2F4 T/45oJWCvJa0xzJueSDYXD3Ez7iC2I6cuSICFyDZvKxgAethcgDdjv686MWQD+mQc1P3 dnAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=l163YBaw; 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 n28si11747133vsj.138.2021.05.12.03.34.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:34:33 -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=l163YBaw; 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]:38540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmCG-0006FO-CQ for patch@linaro.org; Wed, 12 May 2021 06:34:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzL-0003hk-74 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:11 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:36770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzJ-0003hP-Dq for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:10 -0400 Received: by mail-wm1-x330.google.com with SMTP id n17-20020a7bc5d10000b0290169edfadac9so2217447wmk.1 for ; Wed, 12 May 2021 03:21:08 -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=l163YBaw2zHHqHhyWpGcjptjVgib4g68qAoUMqipmmypqYOh98n9ScNdpOrygSKgNm ZvQi53IQf/B8goSY1z+XacWIFd9Cx6wm5OzOCDLj1eM71PbWtGJ3lrFIrLiA3pylwoGS MjNx4P2QSzcNZS19KmmrLhViBhrZ2EwoI7UWnH08PCIC+a9TnG1BP3IRAq6mdRi7cggr d94MQSge0nW6YGQrNflJq/inx0qseAIIa3hgRqndot8waLmmhPBcstY94cWGeH0sI/SM t0YUB8CAhjztMheieoPdfPX5WptaAiYkBKpFTVlbbkbIDEWGeSbhAlXxecT+sYV1bv0k 2Ujw== 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=Oc/4B4LbTxcGyo6hw+aAYGxKaozxHvQWoZe6yuZ8GOKa4an+dFOo2FwksP3v12ihfX vl5AfV2v1tq3mSX0BvMP/+RmI6/nWBi7ZGdO5/9U7peJM6204yFwU2VjziQYggdxRAod KC2DMlFAAbWuIChYLrg4zSi6lYUZJJktRE9RzUyAh9IvBZQ7lQsE+I/ZjMbXO6tRdMd1 h0IDZ2+alOmv6b43fl/+0/7JIZcbJ87F7rdiWoo2dI0GpIkIFuO06yK2FB4flipixY2a SJyeut5a13XDS0gcIlrQkVCV+C3sSshai3iQA/+0bn+PtT4EPOmQxVpZnRQfMpVhPuMr APFA== X-Gm-Message-State: AOAM5321k7dunY6kFwkZcD7DhxBBUV1UMyV50G7nIDZKHc/5y4TVTOLr 2UBO1ltilxF48gOd/aflx9NYhA== X-Received: by 2002:a05:600c:4fd0:: with SMTP id o16mr10651729wmq.137.1620814867999; Wed, 12 May 2021 03:21:07 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id b15sm347305wru.64.2021.05.12.03.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:20:59 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4E9CC1FF9B; Wed, 12 May 2021 11:20:52 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 12/31] tests/tcg: Run timeout cmds using --foreground Date: Wed, 12 May 2021 11:20:32 +0100 Message-Id: <20210512102051.12134-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x330.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