Commit b5278047 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

add slack time before stopping test

parent 0a8ba9d5
......@@ -1416,7 +1416,7 @@ def main(argv):
# Get the stop time from the database
cur.execute("SELECT `time_end_wish` FROM `tbl_serv_tests` WHERE `serv_tests_key` = %d" % testid)
ret = cur.fetchone()
stoptimestamp = datetime.datetime.timestamp(ret[0])
stoptimestamp = datetime.datetime.timestamp(ret[0]) + 1 # postpone by 1s to give services on observers time to shut down
if not stoptimestamp or stoptimestamp < time.time():
logger.error("Something went wrong, stop time is in the past (%s)." % (str(stoptimestamp)))
abort = True
Supports Markdown
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