From 8a9e3bacd284f43bc01cb5cf9a77110066f02ab2 Mon Sep 17 00:00:00 2001 From: Karanbir Singh Date: Nov 19 2011 01:23:40 +0000 Subject: Merge branch 'master' of gitorious.org:testautomation/t_functional --- diff --git a/tests/p_cron/cron_crontab_daily_test.sh b/tests/p_cron/cron_crontab_daily_test.sh index 837bf41..6d1f648 100755 --- a/tests/p_cron/cron_crontab_daily_test.sh +++ b/tests/p_cron/cron_crontab_daily_test.sh @@ -11,8 +11,7 @@ EOF chmod +x /etc/cron.daily/test.sh -run-parts /etc/cron.daily -tail /var/log/cron | grep -q 'run-parts(/etc/cron.daily)' +run-parts /etc/cron.daily | grep -q "test" t_CheckExitStatus $? diff --git a/tests/p_cron/cron_crontab_hourly_test.sh b/tests/p_cron/cron_crontab_hourly_test.sh index f787cfa..fbb0103 100755 --- a/tests/p_cron/cron_crontab_hourly_test.sh +++ b/tests/p_cron/cron_crontab_hourly_test.sh @@ -10,8 +10,7 @@ echo 'test' EOF chmod +x /etc/cron.hourly/test.sh -run-parts /etc/cron.hourly -tail /var/log/cron | grep -q 'run-parts(/etc/cron.hourly)' +run-parts /etc/cron.hourly | grep -q "test" t_CheckExitStatus $? diff --git a/tests/p_cron/cron_crontab_weekly_test.sh b/tests/p_cron/cron_crontab_weekly_test.sh index d07ba09..048befe 100755 --- a/tests/p_cron/cron_crontab_weekly_test.sh +++ b/tests/p_cron/cron_crontab_weekly_test.sh @@ -11,8 +11,7 @@ EOF chmod +x /etc/cron.weekly/test.sh -run-parts /etc/cron.weekly -tail /var/log/cron | grep -q 'run-parts(/etc/cron.weekly)' +run-parts /etc/cron.weekly | grep -q "test" t_CheckExitStatus $?