Version: 9.15.0
python_test_driver Namespace Reference

Data Structures

class  TimeoutException
 

Functions

def runTestBegin (command)
 
def runTestEffective (process)
 
def processResult (res, out, err)
 
def installHook (hook=None)
 
def timeoutHandler (signum, frame)
 

Variables

 subPIDToKill = None
 
 timeout_delay = sys.argv[1]
 
 args = sys.argv[2:]
 
 index = args.index('--hook')
 
 hook = args.pop(index)
 
 _
 
 ext
 
list test_and_args = [sys.executable] + args
 
 timeout_sec = abs(int(timeout_delay)-10)
 
 timer = Timer(timeout_sec, timeoutHandler)
 
int res = 1
 
def process = runTestBegin(test_and_args)
 
 out
 
 err
 

Function Documentation

◆ installHook()

def python_test_driver.installHook (   hook = None)
Install custome hook to process test result.

◆ processResult()

def python_test_driver.processResult (   res,
  out,
  err 
)

◆ runTestBegin()

def python_test_driver.runTestBegin (   command)

◆ runTestEffective()

def python_test_driver.runTestEffective (   process)

◆ timeoutHandler()

def python_test_driver.timeoutHandler (   signum,
  frame 
)

Variable Documentation

◆ _

python_test_driver._
private

◆ args

python_test_driver.args = sys.argv[2:]

◆ err

◆ ext

python_test_driver.ext

◆ hook

python_test_driver.hook = args.pop(index)

◆ index

◆ out

python_test_driver.out

◆ process

def python_test_driver.process = runTestBegin(test_and_args)

◆ res

def python_test_driver.res = 1

◆ subPIDToKill

def python_test_driver.subPIDToKill = None

◆ test_and_args

python_test_driver.test_and_args = [sys.executable] + args

◆ timeout_delay

python_test_driver.timeout_delay = sys.argv[1]

◆ timeout_sec

python_test_driver.timeout_sec = abs(int(timeout_delay)-10)

◆ timer

python_test_driver.timer = Timer(timeout_sec, timeoutHandler)

Referenced by container_common_main(), and main().