Skip to content

Commit

Permalink
tests: fix QrexecPolicyContext
Browse files Browse the repository at this point in the history
Flush new policy file to the disk, otherwise it will stay only in write
buffer.
  • Loading branch information
marmarek committed Jun 20, 2017
1 parent 3ddc052 commit a469c56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qubes/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ def save(self, rules):
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
Expand Down

0 comments on commit a469c56

Please sign in to comment.