]> arthur.barton.de Git - bup.git/commit
test-rm: match rsync output against rx, not string
authorRob Browning <rlb@defaultvalue.org>
Sun, 14 Feb 2016 21:42:19 +0000 (15:42 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 14 Feb 2016 23:06:35 +0000 (17:06 -0600)
commit7fdfad135587067d4fc0ff9fbc9d708497542b9c
tree2ffa4b2d5a734e413556325871a6d9940639f9c4
parent42b51652e6f470b3da17ec7b541f610a1b0ad7a6
test-rm: match rsync output against rx, not string

Add a wv_matches_rx to use Bash =~ to match the expected output against
a regular expression.

Thanks to Greg Troxel for reporting a related problem on NetBSD,
and providing the nudge.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/test-rm.sh