mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-08 21:18:04 +03:00
uitests: Finish fsdetails.py coverage
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
7bfe8139c0
commit
57f916461f
@ -408,14 +408,22 @@ class AddHardware(uiutils.UITestCase):
|
||||
tab.find("Nbd", "menu item").click()
|
||||
tab.find("Format:", "combo box").click_combo_entry()
|
||||
tab.find("qcow2", "menu item").click()
|
||||
tab.find("Browse...", "push button").click()
|
||||
|
||||
browsewin = self.app.root.find("vmm-storage-browser")
|
||||
browsewin.find("Cancel", "push button").click()
|
||||
uiutils.check_in_loop(lambda: addhw.active)
|
||||
|
||||
tab.find("Source path:", "text").text = "/foo/source"
|
||||
tab.find("Target path:", "text").text = "/foo/target"
|
||||
source = tab.find("Source path:", "text")
|
||||
source.text = "/foo/source"
|
||||
tab.find("Browse...", "push button").click()
|
||||
browsewin = self.app.root.find("vmm-storage-browser")
|
||||
browsewin.find_fuzzy("default-pool", "table cell").click()
|
||||
browsewin.find_fuzzy("bochs-vol", "table cell").click()
|
||||
choose = browsewin.find("Choose Volume")
|
||||
uiutils.check_in_loop(lambda: not choose.sensitive)
|
||||
browsewin.find_fuzzy("dir-vol", "table cell").click()
|
||||
uiutils.check_in_loop(lambda: choose.sensitive)
|
||||
choose.click()
|
||||
uiutils.check_in_loop(lambda: addhw.active)
|
||||
uiutils.check_in_loop(
|
||||
lambda: source.text == "/dev/default-pool/dir-vol")
|
||||
|
||||
tab.find_fuzzy("Export filesystem", "check").click()
|
||||
finish.click()
|
||||
uiutils.check_in_loop(lambda: details.active)
|
||||
|
@ -252,9 +252,6 @@ class vmmFSDetails(vmmGObjectUI):
|
||||
self.config.CONFIG_DIR_FS or
|
||||
self.config.CONFIG_DIR_IMAGE)
|
||||
|
||||
if self.storage_browser and self.storage_browser.conn != self.conn:
|
||||
self.storage_browser.cleanup()
|
||||
self.storage_browser = None
|
||||
if self.storage_browser is None:
|
||||
self.storage_browser = vmmStorageBrowser(self.conn)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user