Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tests/tcg: clean-up gdb confirm/pagination settings
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 <iii@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230829161528.2707696-8-alex.bennee@linaro.org>
  • Loading branch information
stsquad committed Aug 30, 2023
1 parent d84842b commit a8fea70
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 33 deletions.
2 changes: 2 additions & 0 deletions tests/guest-debug/run-test.py
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions tests/tcg/aarch64/gdbstub/test-sve-ioctl.py
Expand Up @@ -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:
Expand Down
3 changes: 0 additions & 3 deletions tests/tcg/aarch64/gdbstub/test-sve.py
Expand Up @@ -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:
Expand Down
3 changes: 0 additions & 3 deletions tests/tcg/multiarch/gdbstub/memory.py
Expand Up @@ -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):
Expand Down
4 changes: 0 additions & 4 deletions tests/tcg/multiarch/gdbstub/sha1.py
Expand Up @@ -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):
Expand Down
4 changes: 0 additions & 4 deletions tests/tcg/multiarch/gdbstub/test-proc-mappings.py
Expand Up @@ -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:
Expand Down
4 changes: 0 additions & 4 deletions tests/tcg/multiarch/gdbstub/test-qxfer-auxv-read.py
Expand Up @@ -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):
Expand Down
4 changes: 0 additions & 4 deletions tests/tcg/multiarch/gdbstub/test-thread-breakpoint.py
Expand Up @@ -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):
Expand Down
4 changes: 0 additions & 4 deletions tests/tcg/s390x/gdbstub/test-signals-s390x.py
Expand Up @@ -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):
Expand Down
4 changes: 0 additions & 4 deletions tests/tcg/s390x/gdbstub/test-svc.py
Expand Up @@ -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:
Expand Down

0 comments on commit a8fea70

Please sign in to comment.