blob: 05d89fc45a9fd9362c832950a1ac2e9c6c40bfc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# frozen_string_literal: true
require_relative "file_list"
# Load the test files from the command line.
argv = ARGV.select do |argument|
case argument
when /^-/ then
argument
when /\*/ then
Rake::FileList[argument].to_a.each do |file|
require File.expand_path file
end
false
else
path = File.expand_path argument
abort "\nFile does not exist: #{path}\n\n" unless File.exist?(path)
require path
false
end
end
ARGV.replace argv
|