Workaround to get ostf working
Temporary solution, after stabilisation should be removed. Related-Bug: #1522941 Change-Id: Ida45bea2ba979748bf6853ef947fc665f865ed42
This commit is contained in:
parent
74af9c012e
commit
23b7ae2a1a
@ -16,6 +16,7 @@ import fcntl
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import signal
|
import signal
|
||||||
|
import time
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
@ -79,6 +80,11 @@ class NoseDriver(object):
|
|||||||
raise InterruptTestRunException()
|
raise InterruptTestRunException()
|
||||||
signal.signal(signal.SIGUSR1, raise_exception_handler)
|
signal.signal(signal.SIGUSR1, raise_exception_handler)
|
||||||
|
|
||||||
|
# FIXME(dteselkin): add some sleep to allow process to
|
||||||
|
# initialize db before selecting data
|
||||||
|
# LP#1522941
|
||||||
|
time.sleep(1)
|
||||||
|
|
||||||
with engine.contexted_session(dbpath) as session:
|
with engine.contexted_session(dbpath) as session:
|
||||||
testrun = session.query(models.TestRun)\
|
testrun = session.query(models.TestRun)\
|
||||||
.filter_by(id=test_run_id)\
|
.filter_by(id=test_run_id)\
|
||||||
|
Loading…
Reference in New Issue
Block a user