armi.tests.test_runLogMpi module
Tests of the runLog tooling with MPI.
- class armi.tests.test_runLogMpi.TestRunLoggerMPI(methodName='runTest')[source]
Bases:
TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- class armi.tests.test_runLogMpi.TestRunLogMpiLogConcat(methodName='runTest')[source]
Bases:
TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_mpiLogConcat()[source]
Checks that the concatenation of MPI log files performs as expected.
There are three try/excepts, which is more than one might expect in here. This is necessary so that the test doesn’t hang at any stage if that stage happens to fail for some reason. The first two need to call an
allgatherto check that no errors happen on any rank before the subsequent step. The first one catches any logger-related “setup” failures and the second one catches any concatenation-related failures. The third try/ except runs on rank 0 but then broadcasts any failures to the worker ranks so the test failures are aligned.