Skip to content

Commit 82e096b

Browse files
committed
Fix ruby_spotbugs command to forward the exit code
1 parent c812be2 commit 82e096b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mx.truffleruby/mx_truffleruby.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import pipes
1313
from os.path import join, exists, basename
1414
import shutil
15+
import sys
1516

1617
import mx
1718
import mx_gate
@@ -227,7 +228,7 @@ def ruby_spotbugs(args):
227228
spotbugsArgs = ['-textui', '-low', '-longBugCodes', '-include', filters]
228229
if mx.is_interactive():
229230
spotbugsArgs.append('-progress')
230-
mx_spotbugs.spotbugs(args, spotbugsArgs)
231+
sys.exit(mx_spotbugs.spotbugs(args, spotbugsArgs))
231232

232233
def verify_ci(args):
233234
"""Verify CI configuration"""

0 commit comments

Comments
 (0)