mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Hopefully fix CI by improving multi-suite runner.
This commit is contained in:
+3
-7
@@ -10,13 +10,9 @@ end
|
||||
require File.join(File.dirname(__FILE__), '..', 'lib', 'liquid')
|
||||
|
||||
mode = :strict
|
||||
if ARGV.last == 'lax'
|
||||
puts "-- LAX ERROR MODE"
|
||||
ARGV.pop
|
||||
ARGV.compact! # because things break on Rubinius otherwise
|
||||
mode = :lax
|
||||
else
|
||||
puts "-- STRICT ERROR MODE"
|
||||
if env_mode = ENV['LIQUID_PARSER_MODE']
|
||||
puts "-- #{env_mode.upcase} ERROR MODE"
|
||||
mode = env_mode.to_sym
|
||||
end
|
||||
Liquid::Template.error_mode = mode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user