summaryrefslogtreecommitdiff
path: root/apexer/apexer.py
diff options
context:
space:
mode:
authorDario Freni <dariofreni@google.com>2018-09-28 12:52:12 +0100
committerDario Freni <dariofreni@google.com>2018-09-28 14:22:59 +0100
commit49f47a5c4a392110b2f78c693666fc7ecf74af45 (patch)
tree82da0d8f16a054217be8da3fe5879290a4538a07 /apexer/apexer.py
parentc2ec34026fbb3ce15e473fe467a0193bf87f592c (diff)
Fix runtests.sh after recent changes to apexer.
Also added support for running from the build tree top. Test: runtests.sh Change-Id: I070fa4f73d64e5db66d363d680c4b7345055fdbb
Diffstat (limited to 'apexer/apexer.py')
-rw-r--r--apexer/apexer.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/apexer/apexer.py b/apexer/apexer.py
index 41c79c4..d572c25 100644
--- a/apexer/apexer.py
+++ b/apexer/apexer.py
@@ -31,6 +31,18 @@ import subprocess
import sys
import tempfile
+if 'APEXER_TOOL_PATH' not in os.environ:
+ sys.stderr.write("""
+Error. The APEXER_TOOL_PATH environment variable needs to be set, and point to
+the directory containing all the tools used by apexer (e.g. mke2fs, avbtool,
+etc.). Typically this can be set as:
+
+export APEXER_TOOL_PATH=${ANDROID_BUILD_TOP}/out/soong/host/linux-x86/bin
+
+Aborting.
+""")
+ sys.exit(1)
+
tool_path = os.environ['APEXER_TOOL_PATH']
def ParseArgs(argv):