test: use perl instead of sed -r for portability
authorJani Nikula <jani@nikula.org>
Tue, 4 Dec 2012 21:26:33 +0000 (23:26 +0200)
committerDavid Bremner <bremner@debian.org>
Sat, 8 Dec 2012 13:19:34 +0000 (09:19 -0400)
Our OS X users report -r is not a supported option for sed. Use perl
instead.

test/test-lib.sh

index 948752613dda3e2cf5711b0b477176651c592d60..fd64736bec562ede98be40ecda5ed3eab5e021f0 100644 (file)
@@ -581,7 +581,7 @@ NOTMUCH_NEW ()
 
 notmuch_search_sanitize ()
 {
-    sed -r -e 's/("?thread"?: ?)("?)................("?)/\1\2XXX\3/'
+    perl -pe 's/("?thread"?: ?)("?)................("?)/\1\2XXX\3/'
 }
 
 NOTMUCH_SHOW_FILENAME_SQUELCH='s,filename:.*/mail,filename:/XXX/mail,'