@@ -39,7 +39,8 @@ devices. If you encounter a problem, please submit a fix!
[building-xfstests](building-xfstests.md). Then, either put the
chroot tarball in the default location of
kvm-xfstests/test-appliance/armhf_root_fs.tar.gz, or specify it with
- the -I option to android-xfstests.
+ ROOT_FS in your ~/.config/android-xfstests or the -I option to
+ android-xfstests.
## Procedure
@@ -10,12 +10,6 @@ fi
. "$DIR/util/get-config"
-# Path to chroot tarball; can be overridden with -I
-ROOT_FS="$DIR/test-appliance/armhf_root_fs.tar.gz"
-
-# Where to download the tarball from (at user's request) if we don't have it
-ROOT_FS_URL="https://www.kernel.org/pub/linux/kernel/people/tytso/kvm-xfstests/armhf_root_fs.tar.gz"
-
# Chroot directory on device.
# Note: this will be wiped clean when deploying a new chroot tarball.
CHROOT_DIR="/data/xfstests-chroot"
@@ -142,6 +136,9 @@ setup_chroot()
if ! [ -f "$ROOT_FS" ]; then
echo "The xfstests chroot tarball does not exist:"
echo " $ROOT_FS"
+ if [ -z "$ROOT_FS_URL" ]; then
+ exit 1
+ fi
ask_yesno "Would you like to download the latest public tarball to that location?"
wget -O "$ROOT_FS" "$ROOT_FS_URL"
echo "Finished downloading chroot tarball."
@@ -4,3 +4,9 @@
# Variables set here may be overridden in ~/.config/android-xfstests
#
+# Path to chroot tarball; this can also be set by the -I option
+ROOT_FS="$DIR/test-appliance/armhf_root_fs.tar.gz"
+
+# Where to download the tarball from (at user's request) if we don't have it.
+# If you want to disable this functionality, set this to an empty string.
+ROOT_FS_URL="https://www.kernel.org/pub/linux/kernel/people/tytso/kvm-xfstests/armhf_root_fs.tar.gz"