To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 0ce2e723 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

make sure chosen test start time is in the future

parent 368e66b1
......@@ -327,6 +327,13 @@ def main(argv):
testDuration = int(tree.xpath('//d:generalConf/d:scheduleAsap/d:durationSecs', namespaces=ns)[0].text)
elif sched:
testDuration = int(tree.xpath('//d:generalConf/d:schedule/d:duration', namespaces=ns)[0].text)
testStart = tree.xpath('//d:generalConf/d:schedule/d:start', namespaces=ns)
if testStart:
testStart = flocklab.get_xml_timestamp(testStart[0].text)
if testStart <= time.time():
if not quiet:
print("Element generalConf: Start time has to be in the future.")
errcnt = errcnt + 1
# targetConf additional validation --------------------------------------------
# * DB image ids need to be in the database and binary field must not be empty
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment