Commit 71ec599
committed
win_guest_debugging_tool: Optimize and simplify script
The test script for the Windows guest debugging tool was
significantly refactored to improve its structure,
eliminate redundancy, and increase maintainability.
Key logical improvements include:
- The complex three-class inheritance structure was
consolidated into a single, self-contained WinDebugToolTest
class, simplifying the overall architecture.
- A centralized helper method, _run_script_and_get_paths,
was created to handle all PowerShell script executions and
output parsing. This removes significant code duplication
that was present in each test variant.
- Individual test methods were streamlined to focus purely on
their specific validation logic, delegating common tasks like
script execution and session management to helper functions.
- VM session management was made more robust to ensure sessions
are properly created, reused, and cleaned up.
Signed-off-by: Dehan Meng <demeng@redhat.com>1 parent f03b470 commit 71ec599
File tree
2 files changed
+642
-906
lines changed- qemu/tests
- cfg
2 files changed
+642
-906
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments