From cbe571267dd4f386cf0486751e0057022dcc6c56 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Fri, 5 Dec 2008 22:26:03 +0000 Subject: [PATCH] fix text --- tests/wrong-logfile.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/wrong-logfile.sh b/tests/wrong-logfile.sh index 563844c..53d38df 100755 --- a/tests/wrong-logfile.sh +++ b/tests/wrong-logfile.sh @@ -6,9 +6,11 @@ # message WORKTARGET=$(mktemp -d) -if [[ $( ./lsyncd --logfile /nonexisting/path/name . "${WORKTARGET}" ) =~ "cannot open logfile" ]]; then +if [[ $( ./lsyncd --logfile /nonexisting/path/name . "${WORKTARGET}" 2>&1 ) =~ "cannot open logfile [/nonexisting/path/name]!" ]]; then rmdir "${WORKTARGET}" exit 0; else + rmdir "${WORKTARGET}" exit 1; fi +