Skip to content

Commit 0311d08

Browse files
committed
Fix duplication in truffle.mspec
1 parent 38d8a89 commit 0311d08

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

spec/truffle.mspec

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ class MSpecScript
6565
"spec/ruby/core",
6666
]
6767

68+
# Specs that need Sulong and should be tested in the Sulong gate
69+
library_cext_specs = %w[
70+
spec/ruby/library/etc
71+
spec/ruby/library/openssl
72+
spec/ruby/library/rbconfig/sizeof
73+
spec/ruby/library/syslog
74+
spec/ruby/library/yaml
75+
spec/ruby/library/zlib
76+
spec/ruby/security/cve_2017_17742_spec.rb
77+
]
78+
6879
set :library, [
6980
"spec/ruby/library",
7081

@@ -78,23 +89,10 @@ class MSpecScript
7889
"^spec/ruby/library/win32ole",
7990

8091
# Tested separately as they need Sulong
81-
"^spec/ruby/library/etc",
82-
"^spec/ruby/library/openssl",
83-
"^spec/ruby/library/rbconfig/sizeof",
84-
"^spec/ruby/library/syslog",
85-
"^spec/ruby/library/yaml",
86-
"^spec/ruby/library/zlib",
92+
*library_cext_specs.map { |path| "^#{path}" }
8793
]
8894

89-
set :library_cext, [
90-
"spec/ruby/library/etc",
91-
"spec/ruby/library/openssl",
92-
"spec/ruby/library/rbconfig/sizeof",
93-
"spec/ruby/library/syslog",
94-
"spec/ruby/library/yaml",
95-
"spec/ruby/library/zlib",
96-
"spec/ruby/security/cve_2017_17742_spec.rb",
97-
]
95+
set :library_cext, library_cext_specs
9896

9997
set :capi, [
10098
"spec/ruby/optional/capi"

0 commit comments

Comments
 (0)