tests: add a simple dom0 backup test

Regression test for:
QubesOS/qubes-issues#1515

It assumes existing broken symlink in user dom0 home. Thanks for systemd
it is the case (`~/.local/share/systemd/user`).
This commit is contained in:
Marek Marczykowski-Górecki 2016-01-07 02:14:33 +01:00
parent ba3b908b73
commit 24ad20cfe6
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -63,7 +63,6 @@ class TC_00_Backup(qubes.tests.BackupTestsMixin, qubes.tests.QubesTestCase):
self.restore_backup()
self.remove_vms(vms)
def test_004_sparse_multipart(self):
vms = []
@ -92,6 +91,10 @@ class TC_00_Backup(qubes.tests.BackupTestsMixin, qubes.tests.QubesTestCase):
self.restore_backup()
self.remove_vms(vms)
def test_100_backup_dom0_no_restore(self):
self.make_backup([self.qc[0]])
# TODO: think of some safe way to test restore...
def test_200_restore_over_existing_directory(self):
"""
Regression test for #1386