r15872: Take one step toward getting this working on AIX. the [-z ] stuff
authorJim McDonough <jmcd@samba.org>
Wed, 24 May 2006 19:07:21 +0000 (19:07 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:17:11 +0000 (11:17 -0500)
doesn't work there.
(This used to be commit 0ee78d96d9bd039084a270172316d80df4c00248)

source3/script/tests/test_functions.sh

index 4e3b8ce7db85a58c5d4edbc60a1f776bf7321c48..4134376bfc537b889100222cbed2ff12135f1e34 100644 (file)
@@ -40,7 +40,7 @@ samba3_check_or_start() {
                rm -f $NMBD_TEST_LOG
                echo -n "STARTING NMBD..."
                ((
-                       if [ -z "$NMBD_MAXTIME" ]; then
+                       if ! test -n "$NMBD_MAXTIME"; then
                            NMBD_MAXTIME=2700
                        fi
                        timelimit $NMBD_MAXTIME $NMBD_VALGRIND $SRCDIR/bin/nmbd -F -S --no-process-group -d0 -s $SERVERCONFFILE > $NMBD_TEST_LOG 2>&1 &
@@ -69,7 +69,7 @@ samba3_check_or_start() {
                rm -f $SMBD_TEST_LOG
                echo -n "STARTING SMBD..."
                ((
-                       if [ -z "$SMBD_MAXTIME" ]; then
+                       if ! test -n "$SMBD_MAXTIME"; then
                            SMBD_MAXTIME=2700
                        fi
                        timelimit $SMBD_MAXTIME $SMBD_VALGRIND $SRCDIR/bin/smbd -F -S --no-process-group -d0 -s $SERVERCONFFILE > $SMBD_TEST_LOG 2>&1 &