commit | c3ae0ceaeed2f7679d8edeb1b1c15b5939141f23 | [log] [tgz] |
---|---|---|
author | ThiƩbaud Weksteen <tweek@google.com> | Tue Feb 08 21:48:17 2022 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Feb 08 21:48:17 2022 +0000 |
tree | 4c40a9a309dce939084aff6dcd1f92a58c8c49ed | |
parent | 14db21eafa3507f13f0f41a44892e31e377564d2 [diff] | |
parent | aa9d421655c3cfbb95f3fbeba327b6685e68cb23 [diff] |
Merge "Allow policy tests to support space in file names"
diff --git a/tests/policy.py b/tests/policy.py index 06157fd..60c6962 100644 --- a/tests/policy.py +++ b/tests/policy.py
@@ -396,7 +396,8 @@ self.__libsepolwrap = lib def __GenfsDictAdd(self, Dict, buf): - fs, path, context = buf.split(" ") + fs, buf = buf.split(' ', 1) + path, context = buf.rsplit(' ', 1) Type = context.split(":")[2] if not fs in Dict: Dict[fs] = {Type}