]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/test-reexec: fix several incomplete regexp
authorMing Liu <peter.x.liu@external.atlascopco.com>
Tue, 27 Jun 2017 10:39:14 +0000 (12:39 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Jun 2017 19:54:55 +0000 (20:54 +0100)
Some "=" are missing in the regexp, which leads it match multiple results
if the variables have overrides, for instance:
...
SSTATE_DIR="xxxx"
SSTATE_DIR_qemux86="yyyy"
...

it will match both of them without "=".

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/test-reexec

index 9eaa96e754b6aa384aef53f27a994c26d3c30088..30e792c7d9b22be33b47a37800e057d2f96ec577 100755 (executable)
@@ -38,9 +38,9 @@ mkdir -p $LOGS
 function clearsstate {
        target=$1
 
-       sstate_dir=`bitbake $target -e | grep "^SSTATE_DIR" | cut -d "\"" -f 2`
-       sstate_pkgspec=`bitbake $target -e | grep "^SSTATE_PKGSPEC" | cut -d "\"" -f 2`
-       sstasks=`bitbake $target -e | grep "^SSTATETASKS" | cut -d "\"" -f 2`
+       sstate_dir=`bitbake $target -e | grep "^SSTATE_DIR=" | cut -d "\"" -f 2`
+       sstate_pkgspec=`bitbake $target -e | grep "^SSTATE_PKGSPEC=" | cut -d "\"" -f 2`
+       sstasks=`bitbake $target -e | grep "^SSTATETASKS=" | cut -d "\"" -f 2`
 
        for sstask in $sstasks
        do