facepalm-oriented bug fix in test runner

This commit fixes an old bug where 'make flatjar-test' (run rspecs from
the jar) would run only the first spec file in the args list. Oops.
This commit is contained in:
Jordan Sissel 2013-06-18 18:26:29 -07:00
parent 8fef440b7b
commit b3e64b5907

View file

@ -120,7 +120,7 @@ class LogStash::Runner
if !File.exists?(arg) && __FILE__ =~ /file:.*\.jar!\//
# Try inside the jar.
jar_root = __FILE__.gsub(/!.*/,"!")
newpath = File.join(jar_root, args.first)
newpath = File.join(jar_root, arg)
# Strip leading 'jar:' path (JRUBY_6970)
newpath.gsub!(/^jar:/, "")