Skip to content

Commit 82ba753

Browse files
author
Alan Christie
committed
- Now just interested in "output*"
1 parent 9bb7d09 commit 82ba753

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/groovy/PipelineTester.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,12 +623,14 @@ class Tester {
623623
if (exitValue == 0) {
624624

625625
// Do we expect output files?
626+
// Here we look for things like "output*" in the
627+
// redirected output path.
626628
if (testOutputPath != null) {
627629
def outputFiles =
628630
new FileNameFinder().getFileNames(testOutputPath.toString(),
629-
"${outputFileBaseName}.*")
631+
"${outputFileBaseName}*")
630632
if (outputFiles.size() == 0) {
631-
err("Expected output file '$testOutputFile' but it wasn't there")
633+
err("Expected output files '$testOutputFile' but got nothing")
632634
validated = false
633635
}
634636
}

0 commit comments

Comments
 (0)