From 6e3daf650ddc7973502d7bcc7c61c7453cb4a506 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 12 Nov 1996 20:01:01 +0000 Subject: [PATCH] * init_db, save_files.sh, start_servers, start_servers_local, stop_servers, stop_servers_local: Fix test of $VERBOSE_TEST so that $VERBOSE only gets set if $VERBOSE_TEST is not empty. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9387 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/testing/scripts/ChangeLog | 6 ++++++ src/kadmin/testing/scripts/init_db | 7 +++++-- src/kadmin/testing/scripts/save_files.sh | 7 +++++-- src/kadmin/testing/scripts/start_servers | 7 +++++-- src/kadmin/testing/scripts/start_servers_local | 7 +++++-- src/kadmin/testing/scripts/stop_servers | 7 +++++-- src/kadmin/testing/scripts/stop_servers_local | 7 +++++-- 7 files changed, 36 insertions(+), 12 deletions(-) diff --git a/src/kadmin/testing/scripts/ChangeLog b/src/kadmin/testing/scripts/ChangeLog index 87e77d8d9..5cc8bd98e 100644 --- a/src/kadmin/testing/scripts/ChangeLog +++ b/src/kadmin/testing/scripts/ChangeLog @@ -1,3 +1,9 @@ +Tue Nov 12 14:59:31 1996 Tom Yu + + * init_db, save_files.sh, start_servers, start_servers_local, + stop_servers, stop_servers_local: Fix test of $VERBOSE_TEST so + that $VERBOSE only gets set if $VERBOSE_TEST is not empty. + Mon Nov 11 14:25:15 1996 Tom Yu * init_db, save_files.sh, start_servers_local, stop_servers, diff --git a/src/kadmin/testing/scripts/init_db b/src/kadmin/testing/scripts/init_db index 07d292172..fe8be0273 100644 --- a/src/kadmin/testing/scripts/init_db +++ b/src/kadmin/testing/scripts/init_db @@ -1,9 +1,12 @@ #!/bin/sh # If it's set, set it to true -VERBOSE=${VERBOSE_TEST+true} +if test x$VERBOSE_TEST = x; then + VERBOSE=true # Otherwise, set it to false -DUMMY=${VERBOSE=false} +else + VERBOSE=false +fi if $VERBOSE; then REDIRECT= diff --git a/src/kadmin/testing/scripts/save_files.sh b/src/kadmin/testing/scripts/save_files.sh index 8d0a7c9b3..e56ebad91 100644 --- a/src/kadmin/testing/scripts/save_files.sh +++ b/src/kadmin/testing/scripts/save_files.sh @@ -10,9 +10,12 @@ while [ $# -gt 0 ] ; do done # If it's set, set it to true -VERBOSE=${VERBOSE_TEST+true} +if test x$VERBOSE_TEST = x; then + VERBOSE=true # Otherwise, set it to false -DUMMY=${VERBOSE=false} +else + VERBOSE=false +fi # files="/etc/inetd.conf /etc/syslog.conf /etc/krb.conf \ # /etc/krb.realms /etc/passwd /etc/services /etc/v5srvtab \ diff --git a/src/kadmin/testing/scripts/start_servers b/src/kadmin/testing/scripts/start_servers index 79f6d3046..883aad766 100644 --- a/src/kadmin/testing/scripts/start_servers +++ b/src/kadmin/testing/scripts/start_servers @@ -18,9 +18,12 @@ DUMMY=${START_SERVERS_LOCAL=$STESTDIR/scripts/start_servers_local} DUMMY=${RSH_CMD=rsh} # If it's set, set it to true -VERBOSE=${VERBOSE_TEST+true} +if test x$VERBOSE_TEST = x; then + VERBOSE=true # Otherwise, set it to false -DUMMY=${VERBOSE=false} +else + VERBOSE=false +fi local=1 diff --git a/src/kadmin/testing/scripts/start_servers_local b/src/kadmin/testing/scripts/start_servers_local index e35365963..cfe6ab646 100644 --- a/src/kadmin/testing/scripts/start_servers_local +++ b/src/kadmin/testing/scripts/start_servers_local @@ -18,9 +18,12 @@ fi $STOP_SERVERS_LOCAL -start_servers # If it's set, set it to true -VERBOSE=${VERBOSE_TEST+true} +if test x$VERBOSE_TEST = x; then + VERBOSE=true # Otherwise, set it to false -DUMMY=${VERBOSE=false} +else + VERBOSE=false +fi if $VERBOSE; then REDIRECT= diff --git a/src/kadmin/testing/scripts/stop_servers b/src/kadmin/testing/scripts/stop_servers index dc59d78bf..a5f313ead 100644 --- a/src/kadmin/testing/scripts/stop_servers +++ b/src/kadmin/testing/scripts/stop_servers @@ -18,9 +18,12 @@ DUMMY=${RSH_CMD=rsh} DUMMY=${RESTORE_FILES=$TESTDIR/scripts/restore_files.sh} # If it's set, set it to true -VERBOSE=${VERBOSE_TEST+true} +if test x$VERBOSE_TEST = x; then + VERBOSE=true # Otherwise, set it to false -DUMMY=${VERBOSE=false} +else + VERBOSE=false +fi local=1 diff --git a/src/kadmin/testing/scripts/stop_servers_local b/src/kadmin/testing/scripts/stop_servers_local index dcc52799e..e07609a1f 100644 --- a/src/kadmin/testing/scripts/stop_servers_local +++ b/src/kadmin/testing/scripts/stop_servers_local @@ -4,9 +4,12 @@ DUMMY=${TESTDIR=$TOP/testing} DUMMY=${RESTORE_FILES=$TESTDIR/scripts/restore_files.sh} # If it's set, set it to true -VERBOSE=${VERBOSE_TEST+true} +if test x$VERBOSE_TEST = x; then + VERBOSE=true # Otherwise, set it to false -DUMMY=${VERBOSE=false} +else + VERBOSE=false +fi v4files=false while [ $# -gt 0 ] ; do -- 2.26.2