summaryrefslogtreecommitdiff
path: root/test/674-hiddenapi/run.py
diff options
context:
space:
mode:
author Martin Stjernholm <mast@google.com> 2024-10-31 17:44:48 +0000
committer Martin Stjernholm <mast@google.com> 2025-01-28 00:46:55 -0800
commitb3ca9f3c87bc935ae56e7647c91e2158971fb47d (patch)
tree6675a899ee6dbfe899c3c360867245ac2c996b6f /test/674-hiddenapi/run.py
parent162e2634caca054659a829df1040ee052b900c34 (diff)
Log info about the caller and callee in hiddenapi denial messages.
If enforcement is enabled then log as error instead of warning. Also add "hiddenapi:" prefix to all log messages to make it easier to search for them. Test: Boot and check errors in logcat Test: 674-hiddenapi 690-hiddenapi-same-name-methods 691-hiddenapi-proxy 817-hiddenapi 822-hiddenapi-future 999-redefine-hiddenapi 2038-hiddenapi-jvmti-ext 2270-mh-internal-hiddenapi-use on host and target Bug: 377676642 Change-Id: Ib4f790d7ab4850d398639c64f55be0d14c5c0408
Diffstat (limited to 'test/674-hiddenapi/run.py')
-rw-r--r--test/674-hiddenapi/run.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/674-hiddenapi/run.py b/test/674-hiddenapi/run.py
index 97b8be95c8..ea0cd1d3b5 100644
--- a/test/674-hiddenapi/run.py
+++ b/test/674-hiddenapi/run.py
@@ -24,4 +24,7 @@ def run(ctx, args):
ctx.default_run(args, verify_soft_fail=True, secondary_compilation=False)
ctx.run(fr"sed -i -E '/(JNI_OnLoad|JNI_OnUnload)/d' '{args.stdout_file}'")
- ctx.run(fr"sed -i -E '/^dalvikvm(32|64) E [^]]+]/d' '{args.stderr_file}'")
+
+ # Delete hiddenapi's denial errors which go to stderr on host.
+ if args.host:
+ ctx.run(fr"sed -i -E '/ E dalvikvm.* hiddenapi: /d' '{args.stderr_file}'")