X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Ftest-lib.sh;h=8611ba5ecefc6eddf62ae7da95d3fab39a421df8;hb=20adfe39d7624150a5b337bb77a9647bb3def54b;hp=2aa4dfc958acf0cf1275fc339f0cc5eb7133b69e;hpb=48231337b7ead05d77d0961b034df89871789d0a;p=notmuch diff --git a/test/test-lib.sh b/test/test-lib.sh index 2aa4dfc9..8611ba5e 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -628,6 +628,17 @@ notmuch_json_show_sanitize () -e 's|"filename": "/[^"]*",|"filename": "YYYYY",|g' } +notmuch_emacs_error_sanitize () +{ + local command=$1 + shift + for file in "$@"; do + echo "=== $file ===" + cat "$file" + done | sed \ + -e 's/^\[.*\]$/[XXX]/' \ + -e "s|^\(command: \)\{0,1\}/.*/$command|\1YYY/$command|" +} # End of notmuch helper functions # Use test_set_prereq to tell that a particular prerequisite is available.