tests: Manifest overrides for build-kitkat

* Allow environment variables to override the TEST_* variables to chagne
  the branch and manifest url.
* Breaks hard link to Google's source repos (which have quotas...).
This commit is contained in:
Kyle Manna 2014-12-02 16:42:42 -08:00
parent a549be5b6a
commit 7bfc33c44e

View File

@ -9,11 +9,15 @@
set -ex
if [ "$1" = "docker" ]; then
branch=android-4.4.4_r2.0.1
TEST_BRANCH=${TEST_BRANCH:-android-4.4.4_r2.0.1}
TEST_URL=${TEST_URL:-https://android.googlesource.com/platform/manifest}
cpus=$(grep ^processor /proc/cpuinfo | wc -l)
repo init -u https://android.googlesource.com/platform/manifest -b $branch
repo sync -j $cpus
repo init --depth 1 -u "$TEST_URL" -b "$TEST_BRANCH"
# Use default sync '-j' value embedded in manifest file to be polite
repo sync
prebuilts/misc/linux-x86/ccache/ccache -M 10G