-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.48..v0.2.49 changeset ProcessPool.h
Garret Voltz edited this page Oct 2, 2019
·
1 revision
diff --git a/hoot-test/src/main/cpp/hoot/test/ProcessPool.h b/hoot-test/src/main/cpp/hoot/test/ProcessPool.h
index e6569bf..b201682 100644
--- a/hoot-test/src/main/cpp/hoot/test/ProcessPool.h
+++ b/hoot-test/src/main/cpp/hoot/test/ProcessPool.h
@@ -96,6 +96,7 @@ public:
/**
* @brief ProcessThread constructor
* @param showTestName - boolean flag indicating if the thread should pass the '--names' flag to the process
+ * @param suppressFailureDetail If true, only the failing test name gets logged and none of the failure detail is logged.
* @param printDiff - boolean flag indicating if the thread should pass the '--diff' flag to the process
* @param waitTime - number of seconds to wait before reporting that a test took too long
* @param outMutex - mutex for preserving output ordering to standard out
@@ -103,7 +104,7 @@ public:
* @param serialJobs - JobQueue object (NULL for all threads but one) that contains a set of all jobs
* that cannot be run in parallel but must be run serially
*/
- ProcessThread(bool showTestName, bool printDiff, double waitTime, QMutex* outMutex, JobQueue* parallelJobs, JobQueue* serialJobs = NULL);
+ ProcessThread(bool showTestName, bool suppressFailureDetail, bool printDiff, double waitTime, QMutex* outMutex, JobQueue* parallelJobs, JobQueue* serialJobs = NULL);
/**
* @brief run method for thread, called by ::start()
@@ -136,6 +137,8 @@ private:
/** Flag for showing test names in output */
bool _showTestName;
+ /** If true, only the failing test name gets logged and none of the failure detail is logged. */
+ bool _suppressFailureDetail;
/** Flag for showing diff for script test failures in output */
bool _printDiff;
/** Time (in seconds) to wait before reporting a tests is "taking too long" */
@@ -167,9 +170,11 @@ public:
* @param nproc - number of threads/processes to add to the pool
* @param waitTime - number of seconds to wait before reporting that a test took too long
* @param showTestName - boolean flag indicating if the thread should pass the '--names' flag to the process
+ * @param suppressFailureDetail - If true, only the failing test name gets logged and none of the
+ * failure detail is logged.
* @param printDiff - boolean flag indicating if the thread should pass the '--diff' flag to the process
*/
- ProcessPool(int nproc, double waitTime, bool showTestName, bool printDiff);
+ ProcessPool(int nproc, double waitTime, bool showTestName, bool suppressFailureDetail, bool printDiff);
/** Destructor */
~ProcessPool();