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_weekly_test.sh

18 lines
294 B

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