summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej enczykowski <maze@google.com>2019-03-21 23:00:44 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-03-21 23:00:44 -0700
commit1ffe120dd3ae65da9128406214b7ad3973dcf1c1 (patch)
tree031340d657dcda198cb2d2171add3a94ce85d5b9
parentb9921e93cf59215fd1baabb59354fd883ebddef4 (diff)
parent0ee596ee82d93606f6210a6d10ed79a0ba9c90fa (diff)
downloadtests-1ffe120dd3ae65da9128406214b7ad3973dcf1c1.tar.gz
net-test: build_rootfs - fix -n being ignored am: e9e18054c2
am: 0ee596ee82 Change-Id: Icb5057d700d795fd121dbd033be80fc32632b0ab
-rwxr-xr-xnet/test/build_rootfs.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/test/build_rootfs.sh b/net/test/build_rootfs.sh
index ce09da1..07106cc 100755
--- a/net/test/build_rootfs.sh
+++ b/net/test/build_rootfs.sh
@@ -66,7 +66,9 @@ while getopts ":hs:a:m:n:" opt; do
esac
done
-name=net_test.rootfs.$arch.`date +%Y%m%d`
+if [[ -z "${name}" ]]; then
+ name=net_test.rootfs.$arch.`date +%Y%m%d`
+fi
# Switch to qemu-debootstrap for incompatible architectures
if [ "$arch" = "arm64" ]; then