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

Commit 5b550d6d authored by Jack He's avatar Jack He
Browse files

Use DIST_DIR from environment for XML log output

Bug: 64687730
Test: DIST_DIR=`pwd` ./test/run_host_unit_tests.py -j40 --enable_xml
Change-Id: Ib81703ec76d65700068563c557c090b1f197e650
parent 48e4d25d
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -75,6 +75,10 @@ def get_android_host_out_or_die():


def get_android_dist_dir_or_die():
  # Check if $DIST_DIR is predefined as environment variable
  value = os.environ.get('DIST_DIR')
  if not value:
    # If not use the default path
    ANDROID_BUILD_TOP = get_android_root_or_die()
    value = os.path.join(os.path.join(ANDROID_BUILD_TOP, 'out'), 'dist')
  if not os.path.isdir(value):