lib/pgslice/cli.rb in pgslice-0.4.5 vs lib/pgslice/cli.rb in pgslice-0.4.6
- old
+ new
@@ -12,10 +12,10 @@
class_option :dry_run, type: :boolean, default: false, desc: "Print statements without executing"
map %w[--version -v] => :version
def self.exit_on_failure?
- true
+ ENV["PGSLICE_ENV"] != "test"
end
def initialize(*args)
PgSlice::CLI.instance = self
$stdout.sync = true