From patchwork Thu Apr 27 15:44:57 2023 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: 677522 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp414926wrs; Thu, 27 Apr 2023 08:46:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5DrrSbJgq8Te9BzKubK23AKwRcRF+rUmUQpXewD3u2dvwV+q8azcS44VaR/8hjLbg2BS2u X-Received: by 2002:ac8:7f03:0:b0:3ef:347b:b043 with SMTP id f3-20020ac87f03000000b003ef347bb043mr3317271qtk.32.1682610405470; Thu, 27 Apr 2023 08:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682610405; cv=none; d=google.com; s=arc-20160816; b=Fb5HoQ0eXNfi0djpK129B//PS/moKTK/wuDVvoAddJpcOJSdNhS9GhBez+lKpICOso xFWwGC9QZ9gqZdVIbmg1CO1HsBDO6LhQbGkD8KI9BZqTPCtdSNi1EHm9OgJZJBUGKv9s sTzkpUHky31rWiYIFmYUbYdLWBq78ziodrzcdSHrZpaJh5WvZk9eY3BFkyho51mxmjFC 5vNZ4go0KIBbeeyuZesIQVHqYf5qhUOxDN0e3qoofIkJk4PeG3fsKHb5P0zBEwicPcA5 y0xxWBfvI3a9LuVFezLMxkB7sMhVO+/770riedCuDddkg2xUWAtGp+1Ld5nGTak0gLCq 7+Ew== 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=4eCwi/pVbpdAUWwYQpZXmTPlZe0TlOgYAIJaukeqpyY=; b=efOdcKeHA7HjuT7Xoktz7Dut/SNRLYkI+0gPrckt9TBOXhW47Xw31kmnGsPHuE97c8 o+AwRouqRfOdb2vETw3vWsv4Tz5mm6iAjawK1f0wm/b+4ioLZeSQULGefzAnCVbPe/XU tVtCUkABfNlfuWTZ974MK1ybUnXlxoCFs64o+Db60Z2cZsUkB5ISVyIymKCIwYhZDIm8 2tWN8nQBY+1uLDj5U8zaAz1pXKRArGzp2NJmtoPQ07dkhB9QwXPS9uOPt2qjKXoWo/uy DHwWIInWNtTzDwSvGhlnHMFhBy9Z1dIcBo3pHGPH/Whq37EhwpzxtVMapM1SBvXg6n3U 1bKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZlF4TOgx; 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 h7-20020a05622a170700b003ab8d13c3a6si12115463qtk.409.2023.04.27.08.46.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Apr 2023 08:46:45 -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=ZlF4TOgx; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ps3oN-0001wC-45; Thu, 27 Apr 2023 11:45:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ps3o7-0001ps-Bf for qemu-devel@nongnu.org; Thu, 27 Apr 2023 11:45:19 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ps3o4-0004lG-Sx for qemu-devel@nongnu.org; Thu, 27 Apr 2023 11:45:19 -0400 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3047ff3269aso3163123f8f.0 for ; Thu, 27 Apr 2023 08:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682610315; x=1685202315; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4eCwi/pVbpdAUWwYQpZXmTPlZe0TlOgYAIJaukeqpyY=; b=ZlF4TOgx83J9HtkORK/uelak1qPhRe4gQGmQqatv24sS0cXegokAQYh5xWTFJYKpmt SBaJ20OEDG8npsWOXlhC5OTwiQcWYM/f8TKZXsPnAFY4hz2/ncEuLZ5HBy9vF2qTaBlW Shcs6Is0+RQK1vhGz8PDlvqo7/THvLPOQC5Stg/+2w5deLL7vQBQVEzoi5C++8Wih4MI lFJC5QcWio1+Z7HIVloLO+tpDWhIi3bSY1zL0YZ2wtOxv3VRXYK7vZeQV4c1XOJ49Pw/ ecC2dUVYxkEMVZdHNBCtm0sqVMxS3fTYxNziQyVlxD1akxgI6g8faSg3+D+rri2AgxRJ no7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682610315; x=1685202315; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4eCwi/pVbpdAUWwYQpZXmTPlZe0TlOgYAIJaukeqpyY=; b=W4xVbMkv+wFo8BlwXUTnB+/SkEw6JjTVzEDchVzXz/ZGQj29WHCpMXzPZyo8xiE3aE Zl9V/qBhIvXKDJ3OuOF7ZiDnDqNWGDEdQSJ+HjPhecTiNy8Stz1VdlK/I2Pz1KSysrLE bcGybT80TTZx1WeTT9W5Er8ROKaWs6Tm3PHm4UWXkzxDl8YLg9S2UOKx1gYZcOp6wJRn 3ps/tU7T2qzBjPPOjQFXdfhXRlEH+toXnnupka2Piy6uHtEh+05ylveSyMwVQTkdZHZ0 tg9HdXJbC83hx41oJvjtUIJfmuRfl07voBmHSIuu63XUI+RG9XYKV4Jpn1ef8kPvpAkP N2+g== X-Gm-Message-State: AC+VfDzqhfEsGBzS5V/E71HWgI7LUQC18FLlsCpreTcdvjq0eTHG6qDB aqQiFzoyy7raSaBzyZNCwAR5bwAW4c6IBj6aT+I= X-Received: by 2002:a5d:4008:0:b0:301:3179:f94 with SMTP id n8-20020a5d4008000000b0030131790f94mr1616240wrp.5.1682610315312; Thu, 27 Apr 2023 08:45:15 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id z16-20020a5d4410000000b002fb0c5a0458sm18841221wrq.91.2023.04.27.08.45.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 08:45:12 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 3A7C81FFBD; Thu, 27 Apr 2023 16:45:11 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: richard.henderson@linaro.org, Thomas Huth , Eldon Stegall , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 05/18] scripts/device-crash-test: Add a parameter to run with TCG only Date: Thu, 27 Apr 2023 16:44:57 +0100 Message-Id: <20230427154510.1791273-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230427154510.1791273-1-alex.bennee@linaro.org> References: <20230427154510.1791273-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.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-bounces+patch=linaro.org@nongnu.org From: Thomas Huth We're currently facing the problem that the device-crash-test script runs twice as long in the CI when a runner supports KVM - which sometimes results in a timeout of the CI job. To get a more deterministic runtime here, add an option to the script that allows to run it with TCG only. Reported-by: Eldon Stegall Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20230414145845.456145-3-thuth@redhat.com> Signed-off-by: Alex Bennée Message-Id: <20230424092249.58552-6-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index 333eea9dd3..bb3650a51c 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -103,7 +103,7 @@ crash-test-debian: script: - cd build - make NINJA=":" check-venv - - tests/venv/bin/python3 scripts/device-crash-test -q ./qemu-system-i386 + - tests/venv/bin/python3 scripts/device-crash-test -q --tcg-only ./qemu-system-i386 build-system-fedora: extends: diff --git a/scripts/device-crash-test b/scripts/device-crash-test index 73bcb98693..b74d887331 100755 --- a/scripts/device-crash-test +++ b/scripts/device-crash-test @@ -397,7 +397,7 @@ def binariesToTest(args, testcase): def accelsToTest(args, testcase): - if getBinaryInfo(args, testcase['binary']).kvm_available: + if getBinaryInfo(args, testcase['binary']).kvm_available and not args.tcg_only: yield 'kvm' yield 'tcg' @@ -510,6 +510,8 @@ def main(): help="Full mode: test cases that are expected to fail") parser.add_argument('--strict', action='store_true', dest='strict', help="Treat all warnings as fatal") + parser.add_argument('--tcg-only', action='store_true', dest='tcg_only', + help="Only test with TCG accelerator") parser.add_argument('qemu', nargs='*', metavar='QEMU', help='QEMU binary to run') args = parser.parse_args()