Fix test syntax, and add 'set -e' so that if we do this again in the future, we fail...
authorWouter Verhelst <w@uter.be>
Sat, 23 Jun 2012 23:43:49 +0000 (01:43 +0200)
committerWouter Verhelst <w@uter.be>
Sat, 23 Jun 2012 23:43:49 +0000 (01:43 +0200)
simple_test

index b90798b9338d613a656688b1987863c924407f09..2e05c575fc50170f2b04c9f5b6d4ac6d662585a6 100755 (executable)
@@ -7,6 +7,8 @@ pidfile=${tmpdir}/nbd.pid
 tmpnam=${tmpdir}/nbd.dd
 mydir=$(dirname "`readlink -f $0`")
 
+set -e
+
 ulimit -c unlimited
 
 # Create a one-meg device
@@ -189,7 +191,7 @@ EOF
                # This only works if we built nbd-client, which only exists on
                # Linux. But hey, testing nbd-client itself isn't a bad idea,
                # so here goes.
-               if [ uname -s != "Linux" ]
+               if [ `uname -s` != "Linux" ]
                then
                        retval=77
                else