diff options
author | Anas Nashif <nashif@linux.intel.com> | 2011-03-19 10:34:42 +0000 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2011-03-19 10:34:42 +0000 |
commit | aa8e8db7f26bdad5b5de861d6c7d1af2413c7079 (patch) | |
tree | e6b8c18a3defa484a73381ebbacf8806027ccc6c /tools | |
parent | e3559d3f1e10b646068b7a02945d6e2741ca4c93 (diff) | |
download | kickstarter-aa8e8db7f26bdad5b5de861d6c7d1af2413c7079.tar.gz kickstarter-aa8e8db7f26bdad5b5de861d6c7d1af2413c7079.tar.bz2 kickstarter-aa8e8db7f26bdad5b5de861d6c7d1af2413c7079.zip |
schedule testing script fixes
Diffstat (limited to 'tools')
-rw-r--r-- | tools/fetch-configs.py | 10 |
1 files 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 + |