tools: tests: print additional info when regex matching fails
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 3 Jul 2023 10:39:06 +0000 (12:39 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 3 Jul 2023 10:46:48 +0000 (12:46 +0200)
commitd8bf05ad6122b24c41800bbab16fed40ebff201f
treed8d138e0798f836daa761ae169123175b256b5cb
parent37b3ac4bb5a35c0e84a98d95124f064ca038c4d1
tools: tests: print additional info when regex matching fails

Add shunit assert messages when testing the result of regex matches,
otherwise we're left with a not very useful: "expected:<0> but was:<1>".

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tools/gpio-tools-test.bash