aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2009-08-28 21:22:10 +0000
committerGreg Hudson <ghudson@mit.edu>2009-08-28 21:22:10 +0000
commitdf7f0c4d1976bf651540b5f379b3d0d5432d5f98 (patch)
tree4c5dd49287db173e97c53574ad5b3e726059d159
parent8ca9abb2d31ece8d1daa7930beab9ac52f7ad23d (diff)
downloadkrb5-df7f0c4d1976bf651540b5f379b3d0d5432d5f98.zip
krb5-df7f0c4d1976bf651540b5f379b3d0d5432d5f98.tar.gz
krb5-df7f0c4d1976bf651540b5f379b3d0d5432d5f98.tar.bz2
Clean up a little bit of test suite spew in env-setup: first, when
using BSD options with ps, they should not be prefixed with a '-'; second, the Linux ps supports both BSD and System V options, so change the structure of the tests not to warn when both forms work. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22647 dc483132-0cff-0310-8789-dd5450dbe970
-rwxr-xr-xsrc/kadmin/testing/scripts/env-setup.shin18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/kadmin/testing/scripts/env-setup.shin b/src/kadmin/testing/scripts/env-setup.shin
index 519b986..be07151 100755
--- a/src/kadmin/testing/scripts/env-setup.shin
+++ b/src/kadmin/testing/scripts/env-setup.shin
@@ -90,21 +90,15 @@ if [ "$TEST_PATH" != "" ]; then
fi
if [ "x$PS_ALL" = "x" ]; then
- ps -axwwu >/dev/null 2>&1
- ps_bsd=$?
-
- ps -ef >/dev/null 2>&1
- ps_sysv=$?
-
- if [ $ps_bsd = 0 -a $ps_sysv = 1 ]; then
- PS_ALL="ps -auxww"
- PS_PID="ps -auxww"
- elif [ $ps_bsd = 1 -a $ps_sysv = 0 ]; then
+ if ps auxww >/dev/null 2>&1; then
+ PS_ALL="ps auxww"
+ PS_PID="ps auxww"
+ elif ps -ef >/dev/null 2>&1; then
PS_ALL="ps -ef"
PS_PID="ps -fp"
else
- PS_ALL="ps -auxww"
- PS_PID="ps -auxww"
+ PS_ALL="ps auxww"
+ PS_PID="ps auxww"
echo "WARNING! Cannot auto-detect ps type, assuming BSD."
fi