diff options
| author | Laurent Bonnans <laurent.bonnans@here.com> | 2019-04-10 10:15:08 +0200 |
|---|---|---|
| committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-04-29 09:58:55 +0200 |
| commit | 5ade70bfbe394ad1f2aa273cdb34bcc22c0dbf90 (patch) | |
| tree | 78b14dc95c3494a1ac3adcf66e7a235f919b67f0 | |
| parent | 3e6f5b5debef1e2126966eb2042d55a09f608fd6 (diff) | |
| download | meta-updater-5ade70bfbe394ad1f2aa273cdb34bcc22c0dbf90.tar.gz | |
Parametrizable AKTUALIZR_PTEST_PARALLEL_LEVEL
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| -rwxr-xr-x | recipes-sota/aktualizr/files/run-ptest | 6 |
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 | ||
| 3 | set -e | 3 | set -eu |
| 4 | |||
| 5 | AKTUALIZR_PTEST_PARALLEL_LEVEL=${AKTUALIZR_PTEST_PARALLEL_LEVEL:-2} | ||
| 4 | 6 | ||
| 5 | filter_logs() { | 7 | filter_logs() { |
| 6 | awk '/^.*Test[[:space:]]*#[[:digit:]]+:/ { | 8 | awk '/^.*Test[[:space:]]*#[[:digit:]]+:/ { |
| @@ -13,4 +15,4 @@ filter_logs() { | |||
| 13 | } | 15 | } |
| 14 | 16 | ||
| 15 | cd build | 17 | cd build |
| 16 | ctest -j 8 -O /tmp/aktualizr-ptest.log --output-on-failure -LE 'noptest' 2> /dev/null | filter_logs | 18 | ctest -j "$AKTUALIZR_PTEST_PARALLEL_LEVEL" -O /tmp/aktualizr-ptest.log --output-on-failure -LE 'noptest' 2> /dev/null | filter_logs |
