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 | |
| def python_test_driver.installHook | ( | hook = None | ) |
Install custome hook to process test result.
| def python_test_driver.processResult | ( | res, | |
| out, | |||
| err | |||
| ) |
| def python_test_driver.runTestBegin | ( | command | ) |
| def python_test_driver.runTestEffective | ( | process | ) |
| def python_test_driver.timeoutHandler | ( | signum, | |
| frame | |||
| ) |
|
private |
| python_test_driver.args = sys.argv[2:] |
| python_test_driver.err |
| python_test_driver.ext |
| python_test_driver.hook = args.pop(index) |
| python_test_driver.index = args.index('--hook') |
Referenced by SALOMEDSImpl_AttributeTreeNode.Append(), SALOMEDS_AttributeSequenceOfReal_i.ChangeValue(), SALOMEDS_AttributeSequenceOfInteger_i.ChangeValue(), SALOMEDS_AttributeSequenceOfReal.ChangeValue(), SALOMEDS_AttributeSequenceOfInteger.ChangeValue(), F_FUNC(), SALOMEDSImpl_UseCaseBuilder.GetIndexInFather(), SALOMEDS_IParameters.getValue(), SALOMEDSImpl_IParameters.getValue(), SALOMEDS_AttributeSequenceOfInteger_i.Remove(), SALOMEDS_AttributeSequenceOfReal_i.Remove(), SALOMEDS_AttributeSequenceOfInteger.Remove(), SALOMEDS_AttributeSequenceOfReal.Remove(), Salome_file_i.setDistributedFile(), Salome_file_i.setLocalFile(), SALOMEDS_AttributeSequenceOfInteger_i.Value(), SALOMEDS_AttributeSequenceOfReal_i.Value(), SALOMEDS_AttributeSequenceOfInteger.Value(), and SALOMEDS_AttributeSequenceOfReal.Value().
| python_test_driver.out |
| def python_test_driver.process = runTestBegin(test_and_args) |
| def python_test_driver.res = 1 |
| def python_test_driver.subPIDToKill = None |
| python_test_driver.test_and_args = [sys.executable] + args |
| python_test_driver.timeout_delay = sys.argv[1] |
| python_test_driver.timeout_sec = abs(int(timeout_delay)-10) |
| python_test_driver.timer = Timer(timeout_sec, timeoutHandler) |
Referenced by container_common_main(), and main().