public class RegressionSummary extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ContinueFromExisting |
static int |
CreateNew |
| Constructor and Description |
|---|
RegressionSummary(int howToCreateSummary,
String btDir,
String logDir)
Generate summary results.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doSummary()
Create a summary of a battery test run, suitable for pasting into a spreadsheet.
|
protected String |
execute(String cmd,
int waitMillis)
Execute the given command on the OS.
|
protected String |
getAutoGeneratedSummFileName()
Return the auto generated file name of a summary file
|
static File |
getFileInDir(String dirPath,
String fileName)
Given a directory path, see if it contains a file named fileName, and
return a File for it.
|
static void |
main(String[] args)
Summarize the results of a batterytest in a format that can be pasted into
a spreadsheet.
|
public static final int CreateNew
public static final int ContinueFromExisting
public RegressionSummary(int howToCreateSummary,
String btDir,
String logDir)
howToCreateSummary - If this is
RegressionSummary.CreateNew: the entire summary file is created from
whatever results are currently existing.
RegressionSummary.ContinueFromExisting: any existing summary file
found in logDir is appended to with any new results. If an
existing summary file is not found in logDir, then this has the
same effect as RegressionSummary.CreateNew.btDir - The root directory of a batterytest run, which contains
a oneliner.txt and a batterytest.log file.logDir - The directory to write the summary file to.public void doSummary()
throws Exception
Exceptionpublic static File getFileInDir(String dirPath, String fileName)
dirPath - The fully qualified path for the directoryprotected String execute(String cmd, int waitMillis) throws InterruptedException, IOException
cmd - The command string to execute.waitMillis - The number of millis to wait for the command
subprocess to return, otherwise kill the subprocess.InterruptedExceptionIOExceptionprotected String getAutoGeneratedSummFileName()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.