Skip to content

Commit d197d90

Browse files
author
Alan Christie
committed
- POUT replacement removed
1 parent a9a709d commit d197d90

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

src/groovy/PipelineTester.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import org.apache.commons.cli.Option
3333

3434
// Version
3535
// Update with every change/release
36-
String version = '2.5.2'
36+
String version = '2.6.0'
3737

3838
println "+------------------+"
3939
println "| PipelineTester | v$version"

src/groovy/Tester.groovy

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ class Tester {
5151
String sdExt = '.dsd.json'
5252
String optionPrefix = 'arg.'
5353
String metricsFile = 'output_metrics.txt'
54-
String outputRegex = '(-o|--output) (\\S+)'
5554
String dumpOutPrefix = ' #'
5655
String dumpErrPrefix = ' |'
5756
String setupPrefix = 'setup_'
@@ -888,24 +887,10 @@ class Tester {
888887
test_pout = env_pout ? env_pout : defaultOutputPath
889888
test_pout += File.separator + testSubDir
890889

891-
// Construct and make the path for any '-o' output
890+
// Construct and make the path for any 'POUT' output
892891
File testOutputPath = new File(test_pout)
893892
testOutputPath.mkdir()
894893

895-
// Redirect the '-o' option, if there is a '-o' in the command
896-
def oOption = pipelineCommand =~ /$outputRegex/
897-
if (oOption.count > 0) {
898-
899-
// Redirect output
900-
String outputFileBaseName = oOption[0][-1]
901-
String testOutputFile = '\\${POUT}' + outputFileBaseName
902-
// Now swap-out the original '-o'...
903-
String redirectedOutputOption = "-o ${testOutputFile}"
904-
pipelineCommand = pipelineCommand.replaceAll(/$outputRegex/,
905-
redirectedOutputOption)
906-
907-
}
908-
909894
Log.info('Command', pipelineCommand)
910895

911896
// PIN (Pipeline input data) is normally the project's data directory.

0 commit comments

Comments
 (0)