From 7e13d1052c2ad8152b6c546000fca88dad8d873e Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Thu, 1 Apr 2021 19:41:19 -0400 Subject: [PATCH] Don't run test suite as "root". --- tests/test-rem | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test-rem b/tests/test-rem index 09869832..f880b021 100644 --- a/tests/test-rem +++ b/tests/test-rem @@ -13,7 +13,16 @@ DIR=`dirname $0` cd $DIR if test $? != 0 ; then + echo "" echo "Unable to cd $DIR" >&2 + echo "" + exit 1 +fi + +if test `id -u` = 0 ; then + echo "" + echo "*** Please do not run the test suite as root; it will fail." + echo "" exit 1 fi