[zorg] r307047 - [sanitizers] Fix parallel check for tested Android platforms
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 3 11:56:14 PDT 2017
Author: vitalybuka
Date: Mon Jul 3 11:56:14 2017
New Revision: 307047
URL: http://llvm.org/viewvc/llvm-project?rev=307047&view=rev
Log:
[sanitizers] Fix parallel check for tested Android platforms
Modified:
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_android_functions.sh
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_android_functions.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_android_functions.sh?rev=307047&r1=307046&r2=307047&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_android_functions.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_android_functions.sh Mon Jul 3 11:56:14 2017
@@ -115,8 +115,6 @@ function restart_adb_server {
function test_on_device {
local _serial=$1
shift
- local _out=$1
- shift
ABILIST=$(${ADB} -s $_serial shell getprop ro.product.cpu.abilist)
patch_abilist $ABILIST ABILIST
@@ -127,7 +125,7 @@ function test_on_device {
BUILD_ID=$(${ADB} -s $_serial shell getprop ro.build.id | tr -d '\r')
BUILD_FLAVOR=$(${ADB} -s $_serial shell getprop ro.build.flavor | tr -d '\r')
test_arch_on_device "$_arch" "$_serial" "$BUILD_ID" "$BUILD_FLAVOR"
- eval $_out["$_arg"]=1
+ echo "$_serial" >> tested_arch_$_arch
fi
done
}
@@ -135,26 +133,23 @@ function test_on_device {
function test_android {
restart_adb_server
- declare -A _tested
- for _arg in "$@"; do
- _tested["$_arg"]=0
- done
-
ADB=adb
echo @@@BUILD_STEP run tests@@@
ANDROID_DEVICES=$(${ADB} devices | grep 'device$' | awk '{print $1}')
rm -rf test_android_*.log
+ rm -rf tested_arch_*
for SERIAL in $ANDROID_DEVICES; do
- (test_on_device "$SERIAL" _tested $@ >$(mktemp test_android_XXXX.log) 2>&1) &
+ (test_on_device "$SERIAL" $@ >$(mktemp test_android_XXXX.log) 2>&1) &
done
wait
cat test_android_*.log || true
for _arg in "$@"; do
- if [[ ${_tested["$_arg"]} != 1 ]]; then
- echo @@@BUILD_STEP unavailable device android/$_arg@@@
+ local _arch=${_arg%:*}
+ if [[ ! -f tested_arch_$_arch ]]; then
+ echo @@@BUILD_STEP unavailable device android/$_arch@@@
echo @@@STEP_WARNINGS@@@
fi
done
More information about the llvm-commits
mailing list