tests: Only fetch $cpu repos in parallel

* Avoid repo/git fetch errors by being less agressive.
This commit is contained in:
Kyle Manna 2014-11-16 09:44:12 -08:00
parent f6670dac8c
commit 723adaac52

View File

@ -9,7 +9,7 @@ if [ "$1" = "docker" ]; then
cpus=$(grep ^processor /proc/cpuinfo | wc -l) cpus=$(grep ^processor /proc/cpuinfo | wc -l)
repo init -u https://android.googlesource.com/platform/manifest -b $branch repo init -u https://android.googlesource.com/platform/manifest -b $branch
repo sync -j $(($cpus * 2)) repo sync -j $cpus
prebuilts/misc/linux-x86/ccache/ccache -M 10G prebuilts/misc/linux-x86/ccache/ccache -M 10G