You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_cron/cron_crontab_hourly_test.sh

17 lines
294 B

#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>
t_Log "Running $0 - crontab will run hourly jobs."
# Add a test cron
cat > /etc/cron.hourly/test.sh<<EOF
#!/bin/sh
echo 'test'
EOF
chmod +x /etc/cron.hourly/test.sh
run-parts /etc/cron.hourly | grep -q "test"
t_CheckExitStatus $?