From 5ae54d3b902f39141dea3dca3a894717018d2c85 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Thu, 22 Nov 2018 16:09:59 +0000 Subject: tcwg-llvmbot: Support running containerized bots on TK1s Change-Id: I0ec60e51dd9e7c780e8817f79e6a61e792932140 --- tcwg-base/tcwg-llvmbot/run.sh | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/tcwg-base/tcwg-llvmbot/run.sh b/tcwg-base/tcwg-llvmbot/run.sh index af82e11e..f9d74916 100755 --- a/tcwg-base/tcwg-llvmbot/run.sh +++ b/tcwg-base/tcwg-llvmbot/run.sh @@ -4,10 +4,10 @@ set -e bare_metal_bot_p () { - case "$1" in - "linaro-tk1-"*) return 0 ;; - *) return 1 ;; - esac + if [ -f "/.dockerenv" ]; then + return 1 + fi + return 0 } use_clang_p () @@ -127,24 +127,27 @@ Linker: $(ld --version | head -n 1) C Library: $(ldd --version | head -n 1) EOF -if bare_metal_bot_p "$2"; then - # TK1s have CPU hot-plug, so ninja might detect smaller number of cores - # available for parallelism. Explicitly set "default" parallelism. - cat > /usr/local/bin/ninja < /usr/local/bin/ninja < /usr/local/bin/ninja < /usr/local/bin/ninja <