summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2025-09-03 15:23:12 +0200
committerPhil Sutter <phil@nwl.cc>2025-09-04 17:07:18 +0200
commit419338d96bdb19c10e241387c54f416c551a47c3 (patch)
treefa51f5abe8fd7b64cc697b49288ea71106239481
parent53d686888bc446cc949c2013504c9974e93c1e2d (diff)
tests: monitor: Fix regex collecting expected echo output
No input triggered this bug, but the match would accept "insert" and "replace" keywords anywhere in the line not just at the beginning as was intended. Fixes: b2506e5504fed ("tests: Merge monitor and echo test suites") Signed-off-by: Phil Sutter <phil@nwl.cc>
-rwxr-xr-xtests/monitor/run-tests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/monitor/run-tests.sh b/tests/monitor/run-tests.sh
index 03091d17..4cbdee58 100755
--- a/tests/monitor/run-tests.sh
+++ b/tests/monitor/run-tests.sh
@@ -52,7 +52,7 @@ echo_output_append() {
grep '^\(add\|replace\|insert\)' $command_file >>$output_file
return
}
- [[ "$*" =~ ^add|replace|insert ]] && echo "$*" >>$output_file
+ [[ "$*" =~ ^(add|replace|insert) ]] && echo "$*" >>$output_file
}
json_output_filter() { # (filename)
# unify handle values