Skip to content

Commit 83b4dba

Browse files
committed
[Truffle] JT: allow arbitrary paths for jt test.
* So for instance one can use ":core".
1 parent bf71e56 commit 83b4dba

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

tool/jt.rb

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,16 @@ def rebuild
6060
build
6161
end
6262

63-
def test(path=nil, *args)
64-
if path == nil
65-
mspec 'run', '--excl-tag', 'fails', ':language', ':core', *args
66-
elsif path.start_with? 'spec/ruby'
67-
mspec 'run', '--excl-tag', 'fails', path, *args
68-
else
69-
raise ArgumentError, "don't know how to test #{path}"
70-
end
63+
def test(*args)
64+
args = [':language', ':core'] if args.empty?
65+
mspec 'run', '--excl-tag', 'fails', *args
7166
end
7267

73-
def tag(path)
68+
def tag(path, *args)
7469
mspec 'tag', '--add', 'fails', '--fail', path, *args
7570
end
7671

77-
def untag(path)
72+
def untag(path, *args)
7873
puts
7974
puts "WARNING: untag is currently not very reliable - run `jt test #{path}` after and manually annotate any new failures"
8075
puts

0 commit comments

Comments
 (0)