Commit Diff


commit - 699858e897fffb2bcbe77fd017a5434667b419c2
commit + e29d8d1f99c5f6cf3abde46108df75457916387a
blob - 71d79ccda6e0832f567254e7e028f98e69029c3d
blob + cabe4939eff082160b26af6abe5e460b1b33b2db
--- tests/scenarios
+++ tests/scenarios
@@ -1,9 +1,15 @@
 #!/bin/sh
 
-CONF=/tmp/test.conf
+CONF=/tmp/test-vdcron.conf
 LOG=~/.vdcron/vdcron.log
 RES=
 DATEREFERENCE=
+
+if [ $(id -u) -eq 0 ]; then
+    echo "Please do not run this script with root"
+    exit 1
+fi
+
 check_log() {
 RES=$(sed -n 'H; /^Starting/h; ${g;p;}' $LOG | grep -c -E "$1")
 }