test: canonicalize quotes in xapian error messages
authorDavid Bremner <david@tethera.net>
Fri, 29 Jan 2016 11:53:13 +0000 (07:53 -0400)
committerDavid Bremner <david@tethera.net>
Mon, 14 Mar 2016 22:54:32 +0000 (19:54 -0300)
These differ between 1.2 and 1.3, so we transform the 1.2 backquote to a
single quote for compatibility

test/T360-symbol-hiding.sh

index 4ec0ea65710baba535cc7910fd3e55895f7edce6..89e7f16584f847a9b4d67259e8d9897c61575b64 100755 (executable)
@@ -15,11 +15,11 @@ test_begin_subtest 'running test' run_test
 mkdir -p ${PWD}/fakedb/.notmuch
 ( LD_LIBRARY_PATH="$TEST_DIRECTORY/../lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" \
                 $TEST_DIRECTORY/symbol-test ${PWD}/fakedb ${PWD}/nonexistent \
-                2>&1 | sed "s,${PWD},CWD,g") > OUTPUT
+                2>&1 | notmuch_dir_sanitize | sed "s,\`,\',g") > OUTPUT
 
 cat <<EOF > EXPECTED
 A Xapian exception occurred opening database: Couldn't stat 'CWD/fakedb/.notmuch/xapian'
-caught No chert database found at path \`CWD/nonexistent'
+caught No chert database found at path 'CWD/nonexistent'
 EOF
 test_expect_equal_file EXPECTED OUTPUT