From 9c3dbf9bcc92a7a65a733bd60f570a6b16fd9aae Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sat, 11 Jun 2016 12:59:38 -0500 Subject: [PATCH] test-web: use path with unique unicode sequence MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change the test path from "éxcitement" to "¡excitement!" since the former has multiple valid unicode encodings (e.g. given combining characters, etc.). With the previous string, the test might fail if something along the way normalized it (which was the case on at least some versions of OS X). Thanks to ilovezfs for reporting the problem and helping with the fix. Signed-off-by: Rob Browning Tested-by: Rob Browning --- t/test-web.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/test-web.sh b/t/test-web.sh index dd46194..45eac5e 100755 --- a/t/test-web.sh +++ b/t/test-web.sh @@ -46,18 +46,18 @@ if test -n "$run_test"; then WVSTART 'web' WVPASS bup init WVPASS mkdir src - WVPASS echo 'éxcitement' > src/data + WVPASS echo '¡excitement!' > src/data WVPASS bup index src - WVPASS bup save -n 'éxcitement' --strip src + WVPASS bup save -n '¡excitement!' --strip src "$TOP/bup" web unix://socket & web_pid=$! wait-for-server-start WVPASS curl --unix-socket ./socket \ - 'http://localhost/%C3%A9xcitement/latest/data' > result + 'http://localhost/%C2%A1excitement%21/latest/data' > result - WVPASSEQ 'éxcitement' "$(cat result)" + WVPASSEQ '¡excitement!' "$(cat result)" WVPASS kill -s TERM "$web_pid" WVPASS wait "$web_pid" fi -- 2.39.2