Expected string can be a regex now

This commit is contained in:
2022-03-28 22:34:17 +02:00
parent e709e4b56a
commit 7ae0f2de57

View File

@@ -230,7 +230,7 @@ rl::testcmp() {
local testresult_graphic="${color_red}${color_less}" # alt. symbol ≠
local link="$(readlink -- "${input}")"
if [[ "${expect}" == "${actual}" ]] ; then
if [[ "${actual}" =~ ${expect} ]] ; then
# Don't print success for this flag
(( flag_printerror )) && return 0
testresult=1