Skip to content
Snippets Groups Projects
Commit 1451938d authored by Tri Vo's avatar Tri Vo
Browse files

sepolicy: Improve treble test error message.

Bug: 120080521
Test: removing a mapped type in the mapping file triggers new error
message
Change-Id: I04b21da7206777af8c281a843bd39ea5c4f0863a
parent f0264fe2
No related branches found
No related tags found
No related merge requests found
...@@ -242,7 +242,10 @@ def TestNoUnmappedNewTypes(): ...@@ -242,7 +242,10 @@ def TestNoUnmappedNewTypes():
ret += "policy without an entry into the compatibility mapping file(s) " ret += "policy without an entry into the compatibility mapping file(s) "
ret += "found in private/compat/V.v/V.v[.ignore].cil, where V.v is the " ret += "found in private/compat/V.v/V.v[.ignore].cil, where V.v is the "
ret += "latest API level.\n" ret += "latest API level.\n"
ret += " ".join(str(x) for x in sorted(violators)) + "\n" ret += " ".join(str(x) for x in sorted(violators)) + "\n\n"
ret += "See examples of how to fix this:\n"
ret += "https://android-review.git.corp.google.com/c/platform/system/sepolicy/+/781036\n"
ret += "https://android-review.git.corp.google.com/c/platform/system/sepolicy/+/852612\n"
return ret return ret
### ###
...@@ -265,7 +268,9 @@ def TestNoUnmappedRmTypes(): ...@@ -265,7 +268,9 @@ def TestNoUnmappedRmTypes():
ret += "policy without a declaration in the compatibility mapping " ret += "policy without a declaration in the compatibility mapping "
ret += "found in private/compat/V.v/V.v[.ignore].cil, where V.v is the " ret += "found in private/compat/V.v/V.v[.ignore].cil, where V.v is the "
ret += "latest API level.\n" ret += "latest API level.\n"
ret += " ".join(str(x) for x in sorted(violators)) + "\n" ret += " ".join(str(x) for x in sorted(violators)) + "\n\n"
ret += "See examples of how to fix this:\n"
ret += "https://android-review.git.corp.google.com/c/platform/system/sepolicy/+/822743\n"
return ret return ret
def TestTrebleCompatMapping(): def TestTrebleCompatMapping():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment