File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ should_deploy() {
110110
111111 # Disable deployment when shadow scans are enabled to prevent duplicate artifacts
112112 if [[ " ${RUN_SHADOW_SCANS} " = " true" ]]; then
113- echo " Shadow scans enabled - disabling deployment"
113+ echo " Shadow scans enabled - disabling deployment" >&2
114114 return 1
115115 fi
116116
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ should_deploy() {
117117
118118 # Disable deployment when shadow scans are enabled to prevent duplicate artifacts
119119 if [[ " ${RUN_SHADOW_SCANS} " = " true" ]]; then
120- echo " Shadow scans enabled - disabling deployment"
120+ echo " Shadow scans enabled - disabling deployment" >&2
121121 return 1
122122 fi
123123
Original file line number Diff line number Diff line change @@ -235,8 +235,8 @@ Describe 'should_deploy'
235235 export RUN_SHADOW_SCANS=" true"
236236 When call should_deploy
237237 The status should be failure
238- The lines of stdout should equal 1
239- The line 1 should equal " Shadow scans enabled - disabling deployment"
238+ The lines of stderr should equal 1
239+ The line 1 of stderr should equal " Shadow scans enabled - disabling deployment"
240240 End
241241End
242242
Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ Describe 'build_maven()'
419419 It ' disables deployment when shadow scans are enabled'
420420 When call build_maven
421421 The status should be success
422- The output should include " Shadow scans enabled - disabling deployment"
422+ The stderr should include " Shadow scans enabled - disabling deployment"
423423 The output should include " Maven command: mvn install"
424424 The output should not include " Maven command: mvn deploy"
425425 End
You can’t perform that action at this time.
0 commit comments