[3/4] ci: expose test time out argument

Message ID 20200424074356.193204-4-ruifeng.wang@arm.com (mailing list archive)
State Rejected, archived
Delegated to: David Marchand
Headers
Series arm64 CI stabilize |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Ruifeng Wang April 24, 2020, 7:43 a.m. UTC
  The unit test time out setting was the same for jobs on different
platforms. Due to difference of running environments, platforms
could have different time out expecations.

Provide TIMEOUT_FACTOR as a knob to change the time out setting.

Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
---
 .ci/linux-build.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
index d079801d7..b653de97c 100755
--- a/.ci/linux-build.sh
+++ b/.ci/linux-build.sh
@@ -96,5 +96,6 @@  if [ "$ABI_CHECKS" = "1" ]; then
 fi
 
 if [ "$RUN_TESTS" = "1" ]; then
-    sudo meson test -C build --suite fast-tests -t 3
+    TIMEOUT_FACTOR=${TIMEOUT_FACTOR:-3}
+    sudo meson test -C build --suite fast-tests -t $TIMEOUT_FACTOR
 fi