Skip to content

Commit 47da790

Browse files
author
Alan Christie
committed
- Work on 'creates' feature
1 parent 63c06e5 commit 47da790

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/groovy/PipelineTester.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,10 +641,11 @@ class Tester {
641641
// Do we expect output files?
642642
// Here we look for things like "output*" in the
643643
// redirected output path.
644-
if (testOutputPath != null) {
644+
if (testOutputPath != null && createsBlock != null) {
645645
def outputFiles = new FileNameFinder().
646646
getFileNames(testOutputPath.toString(), "*")
647647
println "++++++ " + outputFiles
648+
println "++++++ " + createsBlock
648649
if (outputFiles.size() == 0) {
649650
err("Expected output files '$testOutputFile' but got nothing")
650651
validated = false

0 commit comments

Comments
 (0)