Skip to contentSkip to conversation

scripts/test-reexec: fix several incomplete regexp

PATCH New [email protected] 1 participant 1 message Jun 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/test-reexec: fix several incomplete regexp

From: Ming Liu <[email protected]>

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 "=".

---
 scripts/test-reexec | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
scripts/test-reexec +3 -3
index 9eaa96e..30e792c 100755
@@ -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
Signature · 1 line
2.7.4