qubes/tests: fix QubesTestCase.qrexec_policy

The context manager left empty file.

fixes QubesOS/qubes-issues#3535
This commit is contained in:
Wojtek Porczyk 2018-02-04 14:03:12 +01:00
parent 9b5256f002
commit 8083d6dece

View File

@ -299,7 +299,7 @@ class _QrexecPolicyContext(object):
def __enter__(self):
rules = self.load()
rules.insert(0, self._rule)
self.save(self._rule)
self.save(rules)
return self
def __exit__(self, exc_type, exc_value, tb):