diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-12-11 01:26:47 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-12-11 14:13:38 +0100 |
| commit | 6c10d780aaea82e888e28dbed259c49de9c15ee2 (patch) | |
| tree | e0f8edad82cc97f9948cdba668645d646a104808 /validation/test-suite | |
| parent | 7a9da618ba96a30e8a09543cac030c4d44b829a7 (diff) | |
| download | sparse-dev-6c10d780aaea82e888e28dbed259c49de9c15ee2.tar.gz | |
testsuite: fix parsing of tags used in the testcases
In testcases' tags, if a value contains 'check-' then this
value will be used as the tagname instead of the value.
Fix this by adding a bit more context in the regexp used for parsing these.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/test-suite')
| -rwxr-xr-x | validation/test-suite | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/validation/test-suite b/validation/test-suite index 6935d40c..1b05c75e 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -84,8 +84,8 @@ get_tag_value() check_assert="" check_cpp_if="" - lines=$(grep 'check-[a-z-]*' $1 | \ - sed -e 's/^.*\(check-[a-z-]*:*\) *\(.*\)$/\1 \2/') + lines=$(grep '^ \* check-[a-z-]*' $1 | \ + sed -e 's/^ \* \(check-[a-z-]*:*\) *\(.*\)$/\1 \2/') while read tag val; do #echo "-> tag: '$tag'" |
