summaryrefslogtreecommitdiff
path: root/wintest/wintest.py
diff options
context:
space:
mode:
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 e295c52f9f..dce2ac874a 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