Skip to content

Commit 585abd5

Browse files
committed
Don't run specs on CI when --default-cache=0 option used
1 parent 45ff6fd commit 585abd5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/truffle/parsing/parsing_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@
6565
expected_ast.strip!
6666
index = index.to_i
6767

68-
guard -> { Primitive.vm_single_context? && !TruffleRuby.jit? } do
68+
# multiple-context mode, enabled JIT or changed default inline cache size affects Truffle AST.
69+
# So just don't run the pursing specs at all in such jobs on CI.
70+
guard -> { Primitive.vm_single_context? && !TruffleRuby.jit? && Truffle::Boot.get_option("default-cache") != 0 } do
6971
it "a #{subject} (#{description.strip}) case is parsed correctly" do
7072
skip "YARP specific test" if original_parser && yarp_specific
7173

0 commit comments

Comments
 (0)