From aa8e8db7f26bdad5b5de861d6c7d1af2413c7079 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 19 Mar 2011 10:34:42 +0000 Subject: [PATCH] schedule testing script fixes --- tools/fetch-configs.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/fetch-configs.py b/tools/fetch-configs.py index 8f9b38b..653af7f 100644 --- a/tools/fetch-configs.py +++ b/tools/fetch-configs.py @@ -15,9 +15,15 @@ for c in configs: dow = date.today().weekday() if c.find('schedule').text != '': schedule = c.find('schedule').text - if schedule == '*' or int(schedule) == dow: + if schedule == '*': + planned = True + elif schedule in ["0","1","2","3","4","5","6"] and int(schedule) == dow: planned = True else: - print "%s is not scheduled to be created today" %name planned = False + if planned: + print "%s is scheduled to be created today" %name + else: + print "%s is not scheduled to be created today" %name + -- 2.7.4