Add dependency check for tree(1).
Bug: 113373927
Test: Ran tool with and without package installed.
Change-Id: I19dbd18cdac5f652deb84ee996186e0a29886279
diff --git a/build/apex/runtests.sh b/build/apex/runtests.sh
index c19c7bd..636048e 100755
--- a/build/apex/runtests.sh
+++ b/build/apex/runtests.sh
@@ -33,6 +33,11 @@
sudo apt-get install libguestfs-tools
"
+which tree > /dev/null || die "This script requires the 'tree' tool.
+On Debian-based systems, this can be installed with:
+
+ sudo apt-get install tree
+"
[[ -n "$ANDROID_PRODUCT_OUT" ]] \
|| die "You need to source and lunch before you can use this script."