SPEC-2703: fix parsing of the testname 49/22449/1
authorCorentin LABBE <clabbe@baylibre.com>
Wed, 18 Sep 2019 08:51:07 +0000 (10:51 +0200)
committerCorentin LABBE <clabbe@baylibre.com>
Wed, 18 Sep 2019 08:52:17 +0000 (10:52 +0200)
The raw testline contains an * which breaks the parsing of the testname.
This patchs adds quote to prevent that.

Change-Id: I8f11b3d9ee5444983dd886954a5e2712025a7314
Bug-AGL: SPEC-2703
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
jjb/common/include-agl-lava-jobs-submit.sh

index 9b78814..a0a261b 100644 (file)
@@ -115,7 +115,7 @@ handle_skiplist() {
        while read testline
        do
                # Check if fail are "normal/accepted"
-               TESTNAME=$(echo $testline | cut -d' ' -f2)
+               TESTNAME=$(echo "$testline" | cut -d' ' -f2)
                if [ -z "$(grep $TESTNAME $SKIPLIST)" ];then
                        echo "DEBUG: $TESNAME not in skiplist"
                        GOODJOB=0