Пример #1
0
def reset():
    """
    Reset the testing environment.
    Barrier is needed to stop messages received from nodes already in the next test being removed
    """
    PyDOOMS._reset()
    PyDOOMS.barrier()
Пример #2
0
def reset():
    """
    Reset the testing environment.
    Barriers are needed to stop workers from resetting the object store
    while other workers are running a test.
    """
    PyDOOMS.barrier()
    PyDOOMS._reset()
    PyDOOMS.barrier()
Пример #3
0
def ShutdownTest():
    """
    Test shutdown commands
    """
    # Send several shutdown messages to commThread
    PyDOOMS.shutdown()
    PyDOOMS.shutdown()
    PyDOOMS.shutdown()

    # Restart commThread
    PyDOOMS._reset()

    # commThread should be alive
    if not (PyDOOMS._comm.commThread.isAlive()):
        logging.critical("isAlive(): " + str(PyDOOMS._comm.commThread.isAlive()))
        raise Exception