Skip to content

Commit aa3d87c

Browse files
committed
Do not run railgun tests on macOS ARM runners
1 parent 8fa1c94 commit aa3d87c

File tree

2 files changed

+24
-6
lines changed
  • lib/rex/post/meterpreter/extensions/stdapi/railgun
  • spec/support/acceptance/session

2 files changed

+24
-6
lines changed

lib/rex/post/meterpreter/extensions/stdapi/railgun/library.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def build_packet_and_layouts(packet, function, args, arch)
138138
when ARCH_X86
139139
native = 'V'
140140
else
141-
raise NotImplementedError, 'Unsupported architecture (must be ARCH_X86 or ARCH_X64)'
141+
raise NotImplementedError, 'Unsupported architecture for railgun (must be ARCH_X86 or ARCH_X64)'
142142
end
143143

144144
# We transmit the immediate stack and three heap-buffers:
@@ -285,7 +285,7 @@ def build_response(packet, function, layouts, client)
285285
when ARCH_X86
286286
native = 'V'
287287
else
288-
raise NotImplementedError, 'Unsupported architecture (must be ARCH_X86 or ARCH_X64)'
288+
raise NotImplementedError, 'Unsupported architecture for railgun (must be ARCH_X86 or ARCH_X64)'
289289
end
290290

291291
rec_inout_buffers = packet.get_tlv_value(TLV_TYPE_RAILGUN_BACK_BUFFERBLOB_INOUT)

spec/support/acceptance/session/python.rb

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,17 @@ module Acceptance::Session
175175
},
176176
{
177177
name: "post/test/railgun",
178-
platforms: [:linux, :osx, :windows],
178+
platforms: [
179+
:linux,
180+
[
181+
:osx,
182+
{
183+
skip: true,
184+
reason: "Unavailable on macOS ARM runners"
185+
}
186+
],
187+
:windows
188+
],
179189
skipped: false,
180190
lines: {
181191
linux: {
@@ -197,9 +207,17 @@ module Acceptance::Session
197207
linux: {
198208
known_failures: []
199209
},
200-
osx: {
201-
known_failures: []
202-
},
210+
platforms: [
211+
:linux,
212+
[
213+
:osx,
214+
{
215+
skip: true,
216+
reason: "Unavailable on macOS ARM runners"
217+
}
218+
],
219+
:windows
220+
],
203221
windows: {
204222
known_failures: []
205223
}

0 commit comments

Comments
 (0)