From fd1f8def6a5348df8278675d885ea98246401370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 13 Mar 2016 12:45:48 +0100 Subject: [PATCH] tests: do not store dom0 home backup inside of dom0 home itself --- qubes/tests/int/backup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qubes/tests/int/backup.py b/qubes/tests/int/backup.py index 7f5fd096..d47492b4 100644 --- a/qubes/tests/int/backup.py +++ b/qubes/tests/int/backup.py @@ -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...