[Fuego] [PATCH 03/10] kernel_build: fix regex

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Tue Mar 27 08:53:19 UTC 2018


On ARM, the string has some spaces before Kernel

Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/tests/Functional.kernel_build/fuego_test.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/engine/tests/Functional.kernel_build/fuego_test.sh b/engine/tests/Functional.kernel_build/fuego_test.sh
index daa7d24..d8b3980 100755
--- a/engine/tests/Functional.kernel_build/fuego_test.sh
+++ b/engine/tests/Functional.kernel_build/fuego_test.sh
@@ -46,8 +46,8 @@ function test_deploy {
 
 function test_processing {
     echo "Processing kernel build log"
-    if [ -z ${FUNCTIONAL_KERNEL_BUILD_REGEX_P+x} ]; then
-        log_compare "$TESTDIR" "1" "^Kernel: arch/.* is ready" "p"
+    if [ -z "$FUNCTIONAL_KERNEL_BUILD_REGEX_P" ]; then
+        log_compare "$TESTDIR" "1" "[ \t]*Kernel: arch/.* is ready" "p"
     else
         log_compare "$TESTDIR" "1" "$FUNCTIONAL_KERNEL_BUILD_REGEX_P" "p"
     fi
-- 
2.7.4




More information about the Fuego mailing list