From 3bb6b7f69234090cc886966e71b8117d0c508cf6 Mon Sep 17 00:00:00 2001 From: brarcher Date: Tue, 31 Dec 2013 20:39:33 +0000 Subject: [PATCH] test_xml_output: do not use -n with echo On some systems (e.g. OSX) a script will use the built-in version of echo, which does not support arguments. Instead of getting no newline, instead there is an extra "-n" in the output. Without the -n, everything works as expected. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@982 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- tests/test_xml_output.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_xml_output.sh b/tests/test_xml_output.sh index 766c977..bae4b87 100755 --- a/tests/test_xml_output.sh +++ b/tests/test_xml_output.sh @@ -162,7 +162,7 @@ if [ x"${expected_duration_count}" != x"${actual_duration_count}" ]; then fi for duration in `grep "\" ${OUTPUT_FILE} | cut -d ">" -f 2 | cut -d "<" -f 1`; do -int_duration=`echo -n $duration | cut -d "." -f 1` +int_duration=`echo $duration | cut -d "." -f 1` if [ "${int_duration}" -ne "-1" ] && [ "${int_duration}" -gt "${CK_DEFAULT_TIMEOUT}" ]; then echo "Problem with duration ${duration}; is not valid. Should be -1 or in [0, ${CK_DEFAULT_TIMEOUT}]" exit 1 -- 2.49.0