]> git.notmuchmail.org Git - notmuch/commit
test: replace $PWD with YYY in emacs & emacs-show tests
authorDavid Bremner <david@tethera.net>
Sat, 23 Nov 2013 11:01:16 +0000 (07:01 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 24 Nov 2013 00:25:29 +0000 (20:25 -0400)
commit2560996b7ebb08cca7e20fbb182998bc2e0e2151
tree02de6fe2a830465e39b8c53b201792cb4fd415bc
parent9c25d4bbf02d8c1902f1c166125afaf93419c3d7
test: replace $PWD with YYY in emacs & emacs-show tests

When executed command line is written to *Notmuch errors* buffer,
shell-quote-argument will backslash-escape any char that is not in
"POSIX filename characters" (i.e. matching "[^-0-9a-zA-Z_./\n]").

Currently in two emacs tests shell has expanded $PWD as part of
emacs variable, which will later be fed to #'shell-quote-argument
and finally written to ERROR file. If $PWD contained non-POSIX
filename characters, data in ERROR file will not match $PWD when
later comparing in shell. Therefore, in these two particular cases
the escaped $PWD is replaced with YYY in ERROR file and expected
content is adjusted accordingly.
test/emacs
test/emacs-show
test/test-lib.sh