Remove error logs from test.
Bionic logs some access denial errors on device,
which are expected
Test: 151-OoenFileLimit
Bug: 148179431
Change-Id: I6f62db27e94fdffc0dc6af17f5146d8550387385
diff --git a/test/151-OpenFileLimit/run b/test/151-OpenFileLimit/run
index 5c83fd0..6faeb0d 100755
--- a/test/151-OpenFileLimit/run
+++ b/test/151-OpenFileLimit/run
@@ -14,8 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+# Filter out expected error messages, which happen on device.
+export ANDROID_LOG_TAGS='*:f'
+
flags="$@"
# Reduce the file descriptor limit so the test will reach the limit sooner.
ulimit -n 512
-${RUN} ${flags}
+${RUN} --external-log-tags ${flags}