From 19047a6a3211f50239f3d222562de7ea70364de5 Mon Sep 17 00:00:00 2001
From: Tri Vo <trong@google.com>
Date: Wed, 7 Feb 2018 12:59:36 -0800
Subject: [PATCH] Silence expandtypeattribute build-time warning.

treble_sepolicy_tests emit during build time warnings for
expandtypeattribute statements in the mapping file.
Silence those warning.

Bug: 72757373
Test: build sepolicy
Change-Id: Ia40d80d8172c96c75854d2e1ec0d284ea0724b5c
---
 tests/mini_parser.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/mini_parser.py b/tests/mini_parser.py
index fbeaff8e5..5dfda0695 100644
--- a/tests/mini_parser.py
+++ b/tests/mini_parser.py
@@ -77,6 +77,9 @@ class MiniCilParser:
             self._parseTypeattribute(stmt)
         elif re.match(r"typeattributeset\s+.+", stmt):
             self._parseTypeattributeset(stmt)
+        elif re.match(r"expandtypeattribute\s+.+", stmt):
+            # To silence the build warnings.
+            pass
         else:
             m = re.match(r"(\w+)\s+.+", stmt)
             ret = "Warning: Unknown statement type (" + m.group(1) + ") in "
-- 
GitLab