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:
parent
9895c56984
commit
8506b12e36
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user