# HG changeset patch # User Alexis S. L. Carvalho # Date 1140219678 21600 # Node ID f293ad87f9286118a73c2fbe164294b8c355fb89 # Parent 2c9872a4f3fdde6b2960234c100fbd09e1e946a9 Don't hard-code /tmp in test-ro-message This makes the test succeed when $TMPDIR is set. diff --git a/tests/test-ro-message b/tests/test-ro-message --- a/tests/test-ro-message +++ b/tests/test-ro-message @@ -14,4 +14,4 @@ echo 'stationary' >>b/vehicle "$HG" commit -m 'Clarifying the vehicle.' "$HG" update -C 1 chmod a-w b/vehicle -"$HG" update -m 2 2>&1 | sed 's|^\(.*[ ]\)/tmp/[^/]*/\(.*\)$|\1\2|g' +"$HG" update -m 2 2>&1 | sed 's|^\(.*[ ]\).*/\([^/]*/[^/]*/[^/]*\)$|\1\2|g'