Commit 3f1a0bd8 authored by Brad King's avatar Brad King
Browse files

ENH: Adding PV_TEST_CLEAN_COMMAND to help testers cleanup extra mpi processes after tests timeout.

parent 4191617b
......@@ -425,7 +425,16 @@ int pvTestDriver::Main(int argc, char* argv[])
{
kwsysProcess_WaitForExit(renderServer, 0);
}
#ifdef PV_TEST_CLEAN_COMMAND
// If any executable did not exit properly, run a user-specified
// cleanup command.
if(kwsysProcess_GetState(client) != kwsysProcess_State_Exited ||
kwsysProcess_GetState(server) != kwsysProcess_State_Exited ||
kwsysProcess_GetState(renderServer) != kwsysProcess_State_Exited)
{
system(PV_TEST_CLEAN_COMMAND);
}
#endif
// Get the results.
int clientResult = this->ReportStatus(client, "client");
int serverResult = 0;
......
......@@ -20,3 +20,4 @@
#cmakedefine VTK_MPI_MAX_NUMPROCS @VTK_MPI_MAX_NUMPROCS@
#cmakedefine DART_TESTING_TIMEOUT @DART_TESTING_TIMEOUT@
#cmakedefine VTK_USE_MPI
#cmakedefine PV_TEST_CLEAN_COMMAND "@PV_TEST_CLEAN_COMMAND@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment