[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/18] scripts/device-crash-test: Add a parameter to run with TCG
From: |
Alex Bennée |
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 |
From: Thomas Huth <thuth@redhat.com>
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 <eldon-qemu@eldondev.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230414145845.456145-3-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
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()
--
2.39.2
- [PULL 00/18] testing and doc updates, Alex Bennée, 2023/04/27
- [PULL 01/18] tests/requirements.txt: bump up avocado-framework version to 101.0, Alex Bennée, 2023/04/27
- [PULL 06/18] qemu-options: finesse the recommendations around -blockdev, Alex Bennée, 2023/04/27
- [PULL 04/18] gitlab-ci: Avoid to re-run "configure" in the device-crash-test jobs, Alex Bennée, 2023/04/27
- [PULL 02/18] tests/avocado: use the new snapshots for testing, Alex Bennée, 2023/04/27
- [PULL 03/18] tests/avocado: Add set of boot tests on SBSA-ref, Alex Bennée, 2023/04/27
- [PULL 07/18] .gitlab-ci.d/cirrus: Drop the CI job for compiling with FreeBSD 12, Alex Bennée, 2023/04/27
- [PULL 11/18] avocado_qemu/__init__.py: factor out the qemu-img finding, Alex Bennée, 2023/04/27
- [PULL 10/18] MAINTAINERS: Cover tests/avocado/machine_aspeed.py, Alex Bennée, 2023/04/27
- [PULL 05/18] scripts/device-crash-test: Add a parameter to run with TCG only,
Alex Bennée <=
- [PULL 08/18] tests/avocado: Make ssh_command_output_contains() globally available, Alex Bennée, 2023/04/27
- [PULL 12/18] tests/avocado/tuxrun_baselines.py: improve code coverage for ppc64, Alex Bennée, 2023/04/27
- [PULL 13/18] tests/tcg: limit the scope of the plugin tests, Alex Bennée, 2023/04/27
- [PULL 14/18] qemu-options.hx: Update descriptions of memory options for NUMA node, Alex Bennée, 2023/04/27
- [PULL 09/18] tests/avocado/machine_aspeed: Fix the broken ast2[56]00_evb_sdk tests, Alex Bennée, 2023/04/27
- [PULL 16/18] docs/devel: make a statement about includes, Alex Bennée, 2023/04/27
- [PULL 15/18] docs/system: remove excessive punctuation from guest-loader docs, Alex Bennée, 2023/04/27
- [PULL 18/18] docs/style: call out the use of GUARD macros, Alex Bennée, 2023/04/27
- [PULL 17/18] docs/devel: mention the spacing requirement for QOM, Alex Bennée, 2023/04/27
- Re: [PULL 00/18] testing and doc updates, Richard Henderson, 2023/04/28