tests: fix QrexecPolicyContext

Flush new policy file to the disk, otherwise it will stay only in write
buffer.
This commit is contained in:
Marek Marczykowski-Górecki 2017-06-21 00:09:32 +02:00
parent 3ddc052af3
commit a469c565f4
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -263,6 +263,7 @@ class _QrexecPolicyContext(object):
self._handle.truncate(0)
self._handle.seek(0)
self._handle.write(''.join(rules))
self._handle.flush()
def close(self):
assert self._handle is not None