Author: shuston Date: Fri Jul 17 22:14:58 2009 New Revision: 795247 URL: http://svn.apache.org/viewvc?rev=795247&view=rev Log: Don't fail this if there are warnings in the log; mirrors behavior of Linux script
Modified: qpid/trunk/qpid/cpp/src/tests/stop_broker.ps1 Modified: qpid/trunk/qpid/cpp/src/tests/stop_broker.ps1 URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/stop_broker.ps1?rev=795247&r1=795246&r2=795247&view=diff ============================================================================== --- qpid/trunk/qpid/cpp/src/tests/stop_broker.ps1 (original) +++ qpid/trunk/qpid/cpp/src/tests/stop_broker.ps1 Fri Jul 17 22:14:58 2009 @@ -23,6 +23,7 @@ # Piping the output makes the script wait for qpidd to finish. ..\Debug\qpidd --quit --port $qpid_port | Write-Output +$stopped = $? # Check qpidd.log. filter bad_stuff { @@ -33,7 +34,8 @@ Get-Content -path qpidd.log | where { bad_stuff } | Out-Default | Set-Variable -name qpidd_errors -value $true if ($qpidd_errors -eq $true) { "WARNING: Suspicious broker log entries in qpidd.log, above." - exit 1 } - -exit 0 +if ($stopped -eq $true) { + exit 0 +} +exit 1 --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:commits-subscr...@qpid.apache.org