fix ѕome == to correct shell test in commented stuff
authorBjörn Jacke <bj@sernet.de>
Thu, 2 Dec 2010 09:18:39 +0000 (10:18 +0100)
committerBjoern Jacke <bj@sernet.de>
Thu, 2 Dec 2010 09:36:06 +0000 (10:36 +0100)
lib/dnspython/examples/ddns.py
lib/subunit/shell/README

index 84814b73cf6cffa9edd7c120c0388f2fe7db0ad9..27a5b932f47cc77effad07792707c124ccc90a2a 100755 (executable)
@@ -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
index af894a2bd3ea2632588b9da0f14dd38810e028dd..5f7cf3762633484f8c2a6d7cdc20dd3c952de8a5 100644 (file)
@@ -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" <<END