Skip to content

Commit

Permalink
Primetime related tests from TestMultipleSchedulers fail (#1123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravi Agrawal authored and mike0042 committed May 11, 2019
1 parent 5ccc7df commit ade931e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/tests/functional/pbs_multi_sched.py
Original file line number Diff line number Diff line change
Expand Up @@ -1655,6 +1655,11 @@ def set_primetime(self, ptime_start, ptime_end, scid='default'):
This function will set the prime time
in holidays file
"""
self.scheds[scid].holidays_delete_entry('a')

cur_year = datetime.datetime.today().year
self.scheds[scid].holidays_set_year(cur_year)

p_day = 'weekday'
p_hhmm = time.strftime('%H%M', time.localtime(ptime_start))
np_hhmm = time.strftime('%H%M', time.localtime(ptime_end))
Expand Down

0 comments on commit ade931e

Please sign in to comment.