diff options
Diffstat (limited to 'scripts/manifest.py')
-rwxr-xr-x | scripts/manifest.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/manifest.py b/scripts/manifest.py index 4c75f8bf2..04f7405df 100755 --- a/scripts/manifest.py +++ b/scripts/manifest.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -"""A tool for inserting values from the build system into a manifest.""" +"""A tool for inserting values from the build system into a manifest or a test config.""" from __future__ import print_function from xml.dom import minidom @@ -65,6 +65,15 @@ def ensure_manifest_android_ns(doc): ns.value) +def parse_test_config(doc): + """ Get the configuration element. """ + + test_config = doc.documentElement + if test_config.tagName != 'configuration': + raise RuntimeError('expected configuration tag at root') + return test_config + + def as_int(s): try: i = int(s) |