summaryrefslogtreecommitdiff
path: root/test/674-hiddenapi/run.py
diff options
context:
space:
mode:
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}'")