Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1n3sAB-0008Jt-3t for mharc-grub-devel@gnu.org; Sat, 01 Jan 2022 23:08:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3s9y-000872-V1 for grub-devel@gnu.org; Sat, 01 Jan 2022 23:07:56 -0500 Received: from [2607:f8b0:4864:20::835] (port=38615 helo=mail-qt1-x835.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3s9x-0002E8-5b for grub-devel@gnu.org; Sat, 01 Jan 2022 23:07:54 -0500 Received: by mail-qt1-x835.google.com with SMTP id 8so27394085qtx.5 for ; Sat, 01 Jan 2022 20:07:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=867nntLcIJ3dMYhQXiKdqnk85V3a1oHsujc6T9uscDY=; b=b3diNl5VnKlmFxzuHvyeJI0qdvi/OgCeHbuc0wzLdXFq92DmZvQxmU1lVzsSul+nfZ vT/zEKK72y9FmUpkgREFFOl2Vdn92IHoFOdQB3uL1b9cTxxCVaj+0PZ15n9CTXDIl2Ni mb/VDGO/WQWTcWbrVY4bzZtbMhHxy+TEVoKl362wpt2FpcUzCJcOMBbit21wru7r1Glj F9cu88Y2eFmmTPhkedVLxWs/zqDMVW4xKX6tLqc6BD/4dtw42oKOua8t1FOPfVRboJSN mDTsETovCBSdmQBQrGni67fPimoMMRwtwYUJUMQz04DREo3GbugOX8Skx815UtWgn5ub 9Vdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=867nntLcIJ3dMYhQXiKdqnk85V3a1oHsujc6T9uscDY=; b=Upv90NzORBDI4HnpacYDGh1orQrvYApdPL/O1M1LVjJifnpP5TsQ8ZEF2bf1KuMXTZ VLqC6CwuJ8MMNcwbyRslptDPyluGMzeVynfHCS0Perhg0imBf3A15neBnL7lMaKqOD+9 nu0W2L95LWY6Kpz5TC6Aew1rUzSYQFh34Wh4ErZW7xs+cUNpT/JIb+qMmE/PGDvnb2sU b/W1FGpc0c8MzneYHpd0ofp8RX++qjgoDdRj9ydtniWA//d5l3wIWKDdyRjscrYuYGjd DDiKJbdTKRGPjuibdnju+T3OOs/sBKaHpXgCY3wH7kTiB/sw134M7q+HQWr+7522Oevw 7kMA== X-Gm-Message-State: AOAM531Bx5ZIqIZtxcGVF5D+3nKEAfbkHUQzfsgPIojfBYtIyxqDKcn7 HtS0bzfUQAk1NYhDBLmeCu4fvQ== X-Google-Smtp-Source: ABdhPJwCSG7em5/Nx08EJFZa5vXUbxyaTPZoKxGc4TxwYgEY8xcXl2oCaF+3tDThG70tivBaHEGykw== X-Received: by 2002:ac8:7d90:: with SMTP id c16mr20444837qtd.500.1641096472363; Sat, 01 Jan 2022 20:07:52 -0800 (PST) Received: from localhost.localdomain ([37.218.244.251]) by smtp.gmail.com with ESMTPSA id 137sm22660725qkm.69.2022.01.01.20.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jan 2022 20:07:52 -0800 (PST) From: Glenn Washburn To: Daniel Kiper , grub-devel@gnu.org Cc: Glenn Washburn Subject: [PATCH v2 10/12] grub-shell: Only turn on qemu head when large debug value is specified Date: Sat, 1 Jan 2022 22:07:20 -0600 Message-Id: <20e3f04dbaf66207973358b56787146c0e66f12e.1641095841.git.development@efficientek.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::835 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=development@efficientek.com; helo=mail-qt1-x835.google.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2022 04:07:56 -0000 There are several levels of debug and more may be added. But the qemu head should be one of the highest debug levels. Set debug to a high value of 10 to turn on the head. We do not want to accidentally turn it on when adding a new debug level to the testing system. Signed-off-by: Glenn Washburn --- tests/util/grub-shell.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index eb8f43ff2..180917c52 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -391,7 +391,7 @@ isofile="$work_directory/grub.iso" test -z "$debug" || echo "GRUB ISO file: ${isofile}" >&2 test -z "$debug" || echo "GRUB ROM directory: ${rom_directory}" >&2 -if test -z "$debug"; then +if test "${debug:-0}" -lt 10; then qemuopts="${qemuopts} -nographic -monitor file:/dev/null" # SeaBIOS 1.11.0 added support for VGA emulation over a serial port. If # this is configured in SeaBIOS, then -nographic causes some extra junk to -- 2.27.0