From c0c93c8c0c1849ddb2492910cafb6dad4a3468ad Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Fri, 11 May 2012 09:05:44 +0200 Subject: [PATCH] FIX: Adapt test for OS X. POSIX sed doesn't understand the \w atom; use [A-Z] instead; it's also more precise. --- tests/t2100-help.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/t2100-help.sh b/tests/t2100-help.sh index 2ee8bed..38e7bb8 100755 --- a/tests/t2100-help.sh +++ b/tests/t2100-help.sh @@ -11,21 +11,21 @@ This test covers the help output. # Note: To avoid having to adapt the test whenever the help documentation # slightly changes, only check for the section headers. test_todo_session 'help output' <>> todo.sh help | sed '/^ \w/!d' +>>> todo.sh help | sed '/^ [A-Z]/!d' Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description] Options: Built-in Actions: EOF test_todo_session 'verbose help output' <>> todo.sh -v help | sed '/^ \w/!d' +>>> todo.sh -v help | sed '/^ [A-Z]/!d' Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description] Options: Built-in Actions: EOF test_todo_session 'very verbose help output' <>> todo.sh -vv help | sed '/^ \w/!d' +>>> todo.sh -vv help | sed '/^ [A-Z]/!d' Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description] Options: Environment variables: @@ -34,7 +34,7 @@ EOF make_action "foo" test_todo_session 'help output with custom action' <>> todo.sh -v help | sed '/^ \w/!d' +>>> todo.sh -v help | sed '/^ [A-Z]/!d' Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description] Options: Built-in Actions: