summaryrefslogtreecommitdiffstats
path: root/recipes-sota
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2019-04-10 10:15:08 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2019-04-29 09:58:58 +0200
commit9a09ca0dbe25c370e58ba2dd4cc20a4ee8b3fb28 (patch)
treebaca0e3e2e8767c79a8990a27c5d3f4e71c11dd5 /recipes-sota
parent4f4a0618070aab078b60789eede5caf408252f74 (diff)
downloadmeta-updater-9a09ca0dbe25c370e58ba2dd4cc20a4ee8b3fb28.tar.gz
Parametrizable AKTUALIZR_PTEST_PARALLEL_LEVEL
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Diffstat (limited to 'recipes-sota')
-rwxr-xr-xrecipes-sota/aktualizr/files/run-ptest6
1 files changed, 4 insertions, 2 deletions
diff --git a/recipes-sota/aktualizr/files/run-ptest b/recipes-sota/aktualizr/files/run-ptest
index e5f0d56..ff441f9 100755
--- a/recipes-sota/aktualizr/files/run-ptest
+++ b/recipes-sota/aktualizr/files/run-ptest
@@ -1,6 +1,8 @@
1#!/bin/sh 1#!/bin/sh
2 2
3set -e 3set -eu
4
5AKTUALIZR_PTEST_PARALLEL_LEVEL=${AKTUALIZR_PTEST_PARALLEL_LEVEL:-2}
4 6
5filter_logs() { 7filter_logs() {
6 awk '/^.*Test[[:space:]]*#[[:digit:]]+:/ { 8 awk '/^.*Test[[:space:]]*#[[:digit:]]+:/ {
@@ -13,4 +15,4 @@ filter_logs() {
13} 15}
14 16
15cd build 17cd build
16ctest -j 8 -O /tmp/aktualizr-ptest.log --output-on-failure -LE 'noptest' 2> /dev/null | filter_logs 18ctest -j "$AKTUALIZR_PTEST_PARALLEL_LEVEL" -O /tmp/aktualizr-ptest.log --output-on-failure -LE 'noptest' 2> /dev/null | filter_logs