tests: cleanup after backup compatibility tests
Backup compat tests use 'test-' prefix (as it was initially for all the tests. Since changing this right not may break those backups in non-trivial way, simply add cleanup for 'test-*' VMs.
This commit is contained in:
parent
9f7668af77
commit
0ee64c74f9
@ -146,6 +146,19 @@ compression-filter=gzip
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
class TC_00_BackupCompatibility(qubes.tests.BackupTestsMixin, qubes.tests.QubesTestCase):
|
class TC_00_BackupCompatibility(qubes.tests.BackupTestsMixin, qubes.tests.QubesTestCase):
|
||||||
|
def tearDown(self):
|
||||||
|
self.qc.unlock_db()
|
||||||
|
self.qc.lock_db_for_writing()
|
||||||
|
self.qc.load()
|
||||||
|
|
||||||
|
# Remove here as we use 'test-' prefix, instead of 'test-inst-'
|
||||||
|
self._remove_test_vms(self.qc, self.conn, prefix="test-")
|
||||||
|
|
||||||
|
self.qc.save()
|
||||||
|
self.qc.unlock_db()
|
||||||
|
|
||||||
|
super(TC_00_BackupCompatibility, self).tearDown()
|
||||||
|
|
||||||
def create_whitelisted_appmenus(self, filename):
|
def create_whitelisted_appmenus(self, filename):
|
||||||
f = open(filename, "w")
|
f = open(filename, "w")
|
||||||
f.write("gnome-terminal.desktop\n")
|
f.write("gnome-terminal.desktop\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user