From patchwork Wed Aug 30 14:54:02 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: 718587 Delivered-To: patch@linaro.org Received: by 2002:adf:d20a:0:b0:31d:da82:a3b4 with SMTP id j10csp585706wrh; Wed, 30 Aug 2023 07:56:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFA7BhB02wthH2IyU997zgAwDRxriKg8QL8UEd5Z5lQcLZGOilgj7gkbAme62eR7Vdy8Iw4 X-Received: by 2002:a05:622a:1997:b0:403:a662:a3c1 with SMTP id u23-20020a05622a199700b00403a662a3c1mr7969920qtc.29.1693407365508; Wed, 30 Aug 2023 07:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693407365; cv=none; d=google.com; s=arc-20160816; b=Gkpn4lJkSDPBDOF03243neaheo2swLRyOLm114GNW7A9ldxrCVW6/pkwBnh/Dz4M7x Ylh3Rbjv5wbmGaVSli9KeINFvOVjdJQQpzJHR2mITnH6Aw/b+x8IBWB6Yog5NjW0rGhh HovTf+9/GXUKlCfOv/7RJOmx3y+hoF+RPKlowSe2AKU7rnh1wkUybFffmtT5nqktVw2c WvA6GyGBB9zRZ295BvRC/3g0xNrVjEQ511lA9s84NKAbhWg3tEOGQ6naDeNt+At3kOsX tS7r9PBMZAVtOfQW8A8UzvMONxXfWO6mqCBq/JtmzUeCEu/bMnzZl6ztvSfiWOXRQawC +Pjg== 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=G9E1DuNxaXu2Lv6KCbenlgvIsuAZILViDISYbqMbTqM=; fh=JHIflz0wy+IHO3PjzyLhBu3F2JnxW5wrdoi1X5ccAzI=; b=uFIE70cHwXBexzklO1+GQBfMDOc/Elr1pBlCmcne4U+QWPg5uzz0xlvRdher/ei03C +7yxUJn5Axeo/43e3mGCyH5VCTvm3jfFgHpMEjyzHgov+Pno/kKEytsr4uxp6fcJ9iDy KITP+hfPrBUmmCvqoVsoDr2NGpLORpM8BX+BDQoxdTdhe68thrHNwHQknPDAgz0h6tKo 1KEr0TCNTmqFLhBfZUmu7tXO6P1e37tWATmc2jM/Oo8qeYlQPtx6gHUD/cT6zIeULn/d 90VE3KVcKJvfrikGL+oSw3xlHqDV4EupwwbaYrGIuBG80fwqYyFiujphUEI1tzwEKNAf rUyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cwCwzgMH; 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 d4-20020a05622a100400b00403ca7e1846si7353377qte.519.2023.08.30.07.56.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Aug 2023 07:56:05 -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=cwCwzgMH; 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 1qbMaL-0001E3-1L; Wed, 30 Aug 2023 10:54:21 -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 1qbMaI-0001C1-Fa for qemu-devel@nongnu.org; Wed, 30 Aug 2023 10:54:18 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbMaE-0000kG-6M for qemu-devel@nongnu.org; Wed, 30 Aug 2023 10:54:18 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4018af1038cso53920025e9.0 for ; Wed, 30 Aug 2023 07:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693407252; x=1694012052; darn=nongnu.org; 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=G9E1DuNxaXu2Lv6KCbenlgvIsuAZILViDISYbqMbTqM=; b=cwCwzgMH564NbywI15AulOwIDAmVpLPbI1DYxz+H8sS6assEuxTnlvCFV5i/EXaTuK YpLajyIHk0hNX/zHl4ISQ3U1t1T/UnKxwRk0IFm+BdewRn3NcCjTMTKP3N0l5OVm45xm iD+fCLoiU47lsXgoZ7Vb3+VzZa8lglVEYUOHAhydMtey1eJki+W2pJq06znzqcA3N+Qn jK/0D3QwMpFzCuopZp6r2qwcTqoB/ejpkv6GRlUqx37y0KZu3N0cTBMId4CSWxK9ZfqN YgSHwC/QMGyWONIe3eSrwlwPO/t17Kip9FgNABZlKSMTHyC68d6UrSANr+pxywc9gq0C oHKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693407253; x=1694012053; 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=G9E1DuNxaXu2Lv6KCbenlgvIsuAZILViDISYbqMbTqM=; b=jjP4GrKE3ZMkeIhbLFzM/SisH0D7H7p6WUhVQxOr5dx+mvthH5o7mTzMGkiFLz8ouv k9PBKKrcLIpVg+8kC8aZSSOjQ8FWSG1wnM2WfiJE5tKrS6ClykTnDqQcNvIGPlEHsLeX eE7yNcRKOluN92n8qJwZiE3vPOu3T6i2QYFd84ALKC8NrILYMUeU0vuRu5sWVlC0L4m+ QSXw+SC6hJSdoj5ok4ifLg0HIkSZeYfA+tNgdeU9J1yq1mApSTlO10MSBPbJRvAZmy9S TZiTm5aAYWP85G1MJZqbksWp7ghddccLs9L5vAzcr4m4yT4TSgNHdDw0OcL7h3qnujgT i0yg== X-Gm-Message-State: AOJu0YxFVh59sXmxeAeT7AxU63AbSkUpg5TnMbCuPaMrdYdtrLOG/UyN l1+0nxIDcnZ9Yi62fUGs0qIRpcd9u06O++70F+Y= X-Received: by 2002:a5d:5450:0:b0:319:650f:60e2 with SMTP id w16-20020a5d5450000000b00319650f60e2mr1859962wrv.11.1693407252747; Wed, 30 Aug 2023 07:54:12 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id z8-20020adff1c8000000b0031c612146f1sm16659748wro.100.2023.08.30.07.54.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 07:54:09 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 66A6B1FFC2; Wed, 30 Aug 2023 15:54:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Ilya Leoshkevich , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Peter Maydell , David Hildenbrand , qemu-arm@nongnu.org (open list:ARM TCG CPUs), qemu-s390x@nongnu.org (open list:S390 TCG CPUs) Subject: [PULL 07/12] tests/tcg: clean-up gdb confirm/pagination settings Date: Wed, 30 Aug 2023 15:54:02 +0100 Message-Id: <20230830145407.3064249-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230830145407.3064249-1-alex.bennee@linaro.org> References: <20230830145407.3064249-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.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.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 We can do this all in the run-test.py script so remove the extraneous bits from the individual tests which got copied from the original non-CI gdb tests. Acked-by: Ilya Leoshkevich Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Message-Id: <20230829161528.2707696-8-alex.bennee@linaro.org> diff --git a/tests/guest-debug/run-test.py b/tests/guest-debug/run-test.py index a032e01f79..b13b27d4b1 100755 --- a/tests/guest-debug/run-test.py +++ b/tests/guest-debug/run-test.py @@ -83,6 +83,8 @@ def log(output, msg): gdb_cmd += " %s" % (args.gdb_args) # run quietly and ignore .gdbinit gdb_cmd += " -q -n -batch" + # disable pagination + gdb_cmd += " -ex 'set pagination off'" # disable prompts in case of crash gdb_cmd += " -ex 'set confirm off'" # connect to remote diff --git a/tests/tcg/aarch64/gdbstub/test-sve-ioctl.py b/tests/tcg/aarch64/gdbstub/test-sve-ioctl.py index b9ef169c1a..ee8d467e59 100644 --- a/tests/tcg/aarch64/gdbstub/test-sve-ioctl.py +++ b/tests/tcg/aarch64/gdbstub/test-sve-ioctl.py @@ -76,9 +76,6 @@ def run_test(): exit(0) try: - # These are not very useful in scripts - gdb.execute("set pagination off") - # Run the actual tests run_test() except: diff --git a/tests/tcg/aarch64/gdbstub/test-sve.py b/tests/tcg/aarch64/gdbstub/test-sve.py index ef57c7412c..afd8ece98d 100644 --- a/tests/tcg/aarch64/gdbstub/test-sve.py +++ b/tests/tcg/aarch64/gdbstub/test-sve.py @@ -66,9 +66,6 @@ def run_test(): exit(0) try: - # These are not very useful in scripts - gdb.execute("set pagination off") - # Run the actual tests run_test() except: diff --git a/tests/tcg/multiarch/gdbstub/memory.py b/tests/tcg/multiarch/gdbstub/memory.py index 67864ad902..dd25e72281 100644 --- a/tests/tcg/multiarch/gdbstub/memory.py +++ b/tests/tcg/multiarch/gdbstub/memory.py @@ -115,9 +115,6 @@ def run_test(): exit(0) try: - # These are not very useful in scripts - gdb.execute("set pagination off") - # Run the actual tests run_test() except (gdb.error): diff --git a/tests/tcg/multiarch/gdbstub/sha1.py b/tests/tcg/multiarch/gdbstub/sha1.py index 423b720e6d..416728415f 100644 --- a/tests/tcg/multiarch/gdbstub/sha1.py +++ b/tests/tcg/multiarch/gdbstub/sha1.py @@ -73,10 +73,6 @@ def run_test(): exit(0) try: - # These are not very useful in scripts - gdb.execute("set pagination off") - gdb.execute("set confirm off") - # Run the actual tests run_test() except (gdb.error): diff --git a/tests/tcg/multiarch/gdbstub/test-proc-mappings.py b/tests/tcg/multiarch/gdbstub/test-proc-mappings.py index 5e3e5a2fb7..04ec61d219 100644 --- a/tests/tcg/multiarch/gdbstub/test-proc-mappings.py +++ b/tests/tcg/multiarch/gdbstub/test-proc-mappings.py @@ -51,10 +51,6 @@ def main(): exit(0) try: - # These are not very useful in scripts - gdb.execute("set pagination off") - gdb.execute("set confirm off") - # Run the actual tests run_test() except gdb.error: diff --git a/tests/tcg/multiarch/gdbstub/test-qxfer-auxv-read.py b/tests/tcg/multiarch/gdbstub/test-qxfer-auxv-read.py index d91e8fdf19..926fa962b7 100644 --- a/tests/tcg/multiarch/gdbstub/test-qxfer-auxv-read.py +++ b/tests/tcg/multiarch/gdbstub/test-qxfer-auxv-read.py @@ -42,10 +42,6 @@ def run_test(): exit(0) try: - # These are not very useful in scripts - gdb.execute("set pagination off") - gdb.execute("set confirm off") - # Run the actual tests run_test() except (gdb.error): diff --git a/tests/tcg/multiarch/gdbstub/test-thread-breakpoint.py b/tests/tcg/multiarch/gdbstub/test-thread-breakpoint.py index 798d508bc7..e57d2a8db8 100644 --- a/tests/tcg/multiarch/gdbstub/test-thread-breakpoint.py +++ b/tests/tcg/multiarch/gdbstub/test-thread-breakpoint.py @@ -45,10 +45,6 @@ def run_test(): exit(0) try: - # These are not very useful in scripts - gdb.execute("set pagination off") - gdb.execute("set confirm off") - # Run the actual tests run_test() except (gdb.error): diff --git a/tests/tcg/s390x/gdbstub/test-signals-s390x.py b/tests/tcg/s390x/gdbstub/test-signals-s390x.py index 80a284b475..ca2bbc0b03 100644 --- a/tests/tcg/s390x/gdbstub/test-signals-s390x.py +++ b/tests/tcg/s390x/gdbstub/test-signals-s390x.py @@ -61,10 +61,6 @@ def run_test(): exit(0) try: - # These are not very useful in scripts - gdb.execute("set pagination off") - gdb.execute("set confirm off") - # Run the actual tests run_test() except (gdb.error): diff --git a/tests/tcg/s390x/gdbstub/test-svc.py b/tests/tcg/s390x/gdbstub/test-svc.py index 18fad3f163..804705fede 100644 --- a/tests/tcg/s390x/gdbstub/test-svc.py +++ b/tests/tcg/s390x/gdbstub/test-svc.py @@ -49,10 +49,6 @@ def main(): exit(0) try: - # These are not very useful in scripts - gdb.execute("set pagination off") - gdb.execute("set confirm off") - # Run the actual tests run_test() except gdb.error: