summaryrefslogtreecommitdiff
path: root/wintest/wintest.py
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-11-30 11:55:32 +1100
committerAndrew Tridgell <tridge@samba.org>2010-12-01 16:09:58 +1100
commit7ecf6b245113ada9d1c572b059e61db2b61e23cd (patch)
tree88d19a6bd965eabf66d5af5719c41258b2eca6de /wintest/wintest.py
parentb5bab49dc965bbda2dc5a8a2608b34808d7dfae8 (diff)
downloadsamba-7ecf6b245113ada9d1c572b059e61db2b61e23cd.tar.gz
wintest Add a function to shut down all the managed VMs at the start
This helps ensure that old virtual machines don't interfer with a new test run. Andrew Bartlett
Diffstat (limited to 'wintest/wintest.py')
-rw-r--r--wintest/wintest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/wintest/wintest.py b/wintest/wintest.py
index e295c52f9fc..dce2ac874aa 100644
--- a/wintest/wintest.py
+++ b/wintest/wintest.py
@@ -518,3 +518,11 @@ class wintest():
self.vm_reset("${WIN_VM}")
self.info("retrying reboot (retries=%u)" % retries)
raise RuntimeError(self.substitute("VM ${WIN_VM} failed to reboot"))
+
+ def get_vms(self):
+ '''return a dictionary of all the configured VM names'''
+ ret = []
+ for v in self.vars:
+ if v[-3:] == "_VM":
+ ret.append(self.vars[v])
+ return ret