tests: do not store dom0 home backup inside of dom0 home itself

This commit is contained in:
Marek Marczykowski-Górecki 2016-03-13 12:45:48 +01:00 committed by Wojtek Porczyk
parent e0686e1e02
commit fd1f8def6a

View File

@ -92,6 +92,7 @@ class TC_00_Backup(qubes.tests.BackupTestsMixin, qubes.tests.QubesTestCase):
self.restore_backup()
for vm in vms:
self.assertIn(vm.name, self.app.domains)
# TODO check vm.backup_timestamp
def test_005_compressed_custom(self):
vms = self.create_backup_vms()
@ -102,6 +103,9 @@ class TC_00_Backup(qubes.tests.BackupTestsMixin, qubes.tests.QubesTestCase):
self.assertIn(vm.name, self.app.domains)
def test_100_backup_dom0_no_restore(self):
# do not write it into dom0 home itself...
os.mkdir('/var/tmp/test-backup')
self.backupdir = '/var/tmp/test-backup'
self.make_backup([self.app.domains[0]])
# TODO: think of some safe way to test restore...