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:
Marek Marczykowski-Górecki 2016-07-19 02:07:52 +02:00
parent 9f7668af77
commit 0ee64c74f9
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -146,6 +146,19 @@ compression-filter=gzip
'''
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):
f = open(filename, "w")
f.write("gnome-terminal.desktop\n")