/** map of feature names to features */
private HashMap features;
- /** if true, do not delete temporary files */
+ /** if true, do not delete temporary files. */
private boolean keepTemp;
+ /** if true, delete temporary files as each test completes. */
+ private boolean killTemp;
+
/** if true, then log results in report(..) when done */
private boolean logResults;
status.setIdentifier(spec);
// validator is used for all setup in entire tree...
Validator validator = new Validator(status);
- validator.lock(this);
+ if (!killTemp) {
+ validator.lock(this);
+ }
Sandbox sandbox = null;
try {
sandbox = new Sandbox(spec.getSuiteDirFile(), validator);
numIncomplete = ((RunSpecIterator) tests).getNumIncomplete();
}
} finally {
- validator.unlock(this);
if (!keepTemp) {
+ if (!killTemp) {
+ validator.unlock(this);
+ }
validator.deleteTempFiles(verboseHarness);
}
}
quietHarness = true;
} else if ("-keepTemp".equals(option)) {
keepTemp = true;
+ } else if ("-killTemp".equals(option)) {
+ killTemp = true;
} else if ("-logResults".equals(option)) {
logResults = true;
} else {
<tr><td><u><code>-keepTemp</code></u>: Normally the harness saves temp files until
the end of the run, and deletes them. If you abort the run or specify
<code>-keepTemp</code>, then temporary (sandbox) directories will remain for analysis.
+ In either case, the file system accumulates all temporary directories
+ and files used for a give harness run.
+ </td></tr>
+ <tr><td><u><code>-killTemp</code></u>: The opposite of <code>-keepTemp</code>,
+ this causes the harness to delete temporary (sandbox) directories at
+ the end of each test run.
+ In this case, the file system only accumulates files for
+ the current test.
</td></tr>
<tr><td><u>*- variants</u>: Options with a trailing "-" cause two sets of
option lists to be produced, one with and one without the corresponding