Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e03153b2 authored by Cole Faust's avatar Cole Faust
Browse files

Convert auto_gen_test_config.py to python 3

This script is run by soong, but without specifying
the python launcher, so it uses the default "python"
in the path, which is python 2.

Convert the script to use python 3.

Bug: 203436762
Test: Building an internal product that uses this
Change-Id: I4496c03b8669c54d080aa45c446dd1f27d91259e
parent 459dcab9
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
#!/usr/bin/env python
#!/usr/bin/env python3
#
#
# Copyright (C) 2017 The Android Open Source Project
# Copyright (C) 2017 The Android Open Source Project
#
#
@@ -69,7 +69,7 @@ def main(argv):
  module = os.path.splitext(os.path.basename(target_config))[0]
  module = os.path.splitext(os.path.basename(target_config))[0]
  instrumentation = instrumentation_elements[0]
  instrumentation = instrumentation_elements[0]
  manifest = manifest_elements[0]
  manifest = manifest_elements[0]
  if instrumentation.attributes.has_key(ATTRIBUTE_LABEL):
  if ATTRIBUTE_LABEL in instrumentation.attributes:
    label = instrumentation.attributes[ATTRIBUTE_LABEL].value
    label = instrumentation.attributes[ATTRIBUTE_LABEL].value
  else:
  else:
    label = module
    label = module