lib/rbbt/util/cmd.rb in rbbt-util-5.19.20 vs lib/rbbt/util/cmd.rb in rbbt-util-5.19.21
- old
+ new
@@ -217,10 +217,10 @@
out = StringIO.new sout.read
sout.close unless sout.closed?
Process.waitpid pid
- if not $?.success?
+ if not $?.success? and not no_fail
raise ProcessFailed.new "Command [#{pid}] #{cmd} failed with error status #{$?.exitstatus}.\n#{err}"
else
Log.log err, stderr if Integer === stderr and log
end