qvm-backup-restore: really pass options
This commit is contained in:
parent
a0d6327532
commit
2d8bade8b2
@ -93,7 +93,7 @@ class TC_00_qvm_backup_restore(qubesadmin.tests.QubesTestCase):
|
||||
app=self.app)
|
||||
mock_backup.assert_called_once_with(
|
||||
self.app, '/some/path', None, 'testpass')
|
||||
self.assertEqual(exclude_list, ['test-vm2'])
|
||||
self.assertEqual(mock_backup.return_value.options.exclude, ['test-vm2'])
|
||||
self.assertAllCalled()
|
||||
|
||||
def test_010_handle_broken_no_problems(self):
|
||||
|
@ -223,18 +223,12 @@ def main(args=None, app=None):
|
||||
if args.ignore_missing:
|
||||
backup.options.use_default_template = True
|
||||
backup.options.use_default_netvm = True
|
||||
if args.rename_conflicting:
|
||||
backup.options.rename_conflicting = True
|
||||
if not args.dom0_home:
|
||||
backup.options.dom0_home = False
|
||||
if args.ignore_username_mismatch:
|
||||
backup.options.ignore_username_mismatch = True
|
||||
if args.ignore_size_limit:
|
||||
backup.options.ignore_size_limit = True
|
||||
if args.exclude:
|
||||
backup.options.exclude = args.exclude
|
||||
if args.verify_only:
|
||||
backup.options.verify_only = True
|
||||
backup.options.rename_conflicting = args.rename_conflicting
|
||||
backup.options.dom0_home = args.dom0_home
|
||||
backup.options.ignore_username_mismatch = args.ignore_username_mismatch
|
||||
backup.options.ignore_size_limit = args.ignore_size_limit
|
||||
backup.options.exclude = args.exclude
|
||||
backup.options.verify_only = args.verify_only
|
||||
|
||||
restore_info = None
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user