From: Martin Pool Date: Thu, 14 Mar 2002 03:04:36 +0000 (+0000) Subject: Show user name and `uname -a` in the test output header, to aid in bug X-Git-Tag: v2.5.5.rc1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53e1f937bc8fdfdf4caa1ec9e10101bee3d67d99;p=thirdparty%2Frsync.git Show user name and `uname -a` in the test output header, to aid in bug reports. (We mostly want to know if they're root or not.) --- diff --git a/runtests.sh b/runtests.sh index d3755aef..50f4c8bc 100755 --- a/runtests.sh +++ b/runtests.sh @@ -139,6 +139,16 @@ echo "$0 running in `pwd`" echo " rsync_bin=$rsync_bin" echo " srcdir=$srcdir" +if testuser=`whoami` +then + : +else + testuser='(unknown)' +fi + +echo " testuser=$testuser" +echo " os=`uname -a`" + if test ! -f $rsync_bin then echo "rsync_bin $rsync_bin is not a file" >&2