From e8f9ee64a71d788a8ed1e1d7d5715f248c4fa107 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Thu, 2 Dec 2010 10:18:39 +0100 Subject: [PATCH] =?utf8?q?fix=20=D1=95ome=20=3D=3D=20to=20correct=20shell?= =?utf8?q?=20test=20in=20commented=20stuff?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/dnspython/examples/ddns.py | 2 +- lib/subunit/shell/README | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dnspython/examples/ddns.py b/lib/dnspython/examples/ddns.py index 84814b73cf6..27a5b932f47 100755 --- a/lib/dnspython/examples/ddns.py +++ b/lib/dnspython/examples/ddns.py @@ -16,7 +16,7 @@ # # DEVICE=$1 # -# if [ "X${DEVICE}" == "Xeth0" ]; then +# if [ "X${DEVICE}" = "Xeth0" ]; then # IPADDR=`LANG= LC_ALL= ifconfig ${DEVICE} | grep 'inet addr' | # awk -F: '{ print $2 } ' | awk '{ print $1 }'` # /usr/local/sbin/ddns.py $IPADDR diff --git a/lib/subunit/shell/README b/lib/subunit/shell/README index af894a2bd3e..5f7cf376263 100644 --- a/lib/subunit/shell/README +++ b/lib/subunit/shell/README @@ -38,7 +38,7 @@ a manually written test using the bindings might look like: subunit_start_test "test name" # determine if test passes or fails result=$(something) -if [ $result == 0 ]; then +if [ $result -eq 0 ]; then subunit_pass_test "test name" else subunit_fail_test "test name" <