Skip to content

Commit 6217c16

Browse files
committed
jt purge
1 parent f580863 commit 6217c16

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tool/jt.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ def help
571571
jt tag spec/ruby/language tag failing specs in this directory
572572
jt tag spec/ruby/language/while_spec.rb tag failing specs in this file
573573
jt tag all spec/ruby/language tag all specs in this file, without running them
574-
jt untag spec/ruby/language untag passing specs in this directory
575-
jt untag spec/ruby/language/while_spec.rb untag passing specs in this file
574+
jt untag ... untag passing specs
575+
jt purge ... remove tags without specs
576576
jt mspec ... run MSpec with the TruffleRuby configuration and custom arguments
577577
jt metrics alloc [--json] ... how much memory is allocated running a program
578578
jt metrics instructions ... how many CPU instructions are used to run a program
@@ -1275,6 +1275,9 @@ def test_specs(command, *args)
12751275
when 'untag'
12761276
options += %w[--del fails --pass]
12771277
command = 'tag'
1278+
when 'purge'
1279+
options += %w[--purge]
1280+
command = 'tag'
12781281
when 'tag_all'
12791282
options += %w[--unguarded --all --dry-run --add fails]
12801283
command = 'tag'
@@ -1372,6 +1375,10 @@ def tag_all(*args)
13721375
end
13731376
private :tag_all
13741377

1378+
def purge(path, *args)
1379+
test_specs('purge', path, *args)
1380+
end
1381+
13751382
def untag(path, *args)
13761383
puts
13771384
puts "WARNING: untag is currently not very reliable - run `jt test #{[path,*args] * ' '}` after and manually annotate any new failures"

0 commit comments

Comments
 (0)