diff options
Diffstat (limited to 'tests/monitor')
-rwxr-xr-x | tests/monitor/run-tests.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/monitor/run-tests.sh b/tests/monitor/run-tests.sh index 23d4e212..1adabda1 100755 --- a/tests/monitor/run-tests.sh +++ b/tests/monitor/run-tests.sh @@ -8,6 +8,11 @@ mydiff() { diff -w -I '^# ' "$@" } +if [ "$(id -u)" != "0" ] ; then + echo "this requires root!" + exit 1 +fi + testdir=$(mktemp -d) if [ ! -d $testdir ]; then echo "Failed to create test directory" >&2 |