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 <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-05-21 13:28:38 +02:00
parent 9895c56984
commit 8506b12e36
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -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())