From 8506b12e366e09d5e7ed7c3cad7dc8480a28bbfe Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 21 May 2023 13:28:38 +0200 Subject: [PATCH] Split stop test Suite destructions may have leftovers from previous suites, assert the Libvirt domain status separately after all suite stop runs finished. Signed-off-by: Georg Pfuetzenreuter --- tests/01_test_cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/01_test_cli.py b/tests/01_test_cli.py index 188da1b..7412e65 100644 --- a/tests/01_test_cli.py +++ b/tests/01_test_cli.py @@ -152,10 +152,13 @@ def test_test_incomplete(script_runner, script, config): 'one_minion_bootstrap', 'one_minion_one_master_bootstrap' ]) -def test_stop(script_runner, script, virt, config, suite): +def test_stop(script_runner, script, config, suite): cmd = (script, '--config', config, '--suite', suite, '--stop', '--force') result = script_runner.run(*cmd) assert result.success + + +def test_stop_success(virt): domains = [] for domain in virt.listDomainsID(): domains.append(virt.lookupByID(domain).name())