Skip to content

Commit 352259d

Browse files
Use nice when running tests
1 parent faa4d58 commit 352259d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

zorg/buildbot/builders/BOLTBuilder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def getBOLTCmakeBuildFactory(
188188
# relevant source code changes are detected.
189189
LitTestCommand(
190190
name='nfc-check-bolt',
191-
command=("LIT_OPTS='-j2' ninja check-bolt"),
191+
command=("LIT_OPTS='-j2' nice -n 5 ninja check-bolt"),
192192
description=["running", "NFC", "check-bolt"],
193193
descriptionDone=["NFC", "check-bolt", "completed"],
194194
warnOnFailure=True,
@@ -199,8 +199,7 @@ def getBOLTCmakeBuildFactory(
199199
# Run out-of-tree large tests if the llvm-bolt binary has changed.
200200
LitTestCommand(
201201
name='nfc-check-large-bolt',
202-
command=['bin/llvm-lit', '-sv', '-j2',
203-
'tools/bolttests'],
202+
command=('nice -n 5 bin/llvm-lit -sv -j2 tools/bolttests'),
204203
description=["running", "NFC", "check-large-bolt"],
205204
descriptionDone=["NFC", "check-large-bolt", "completed"],
206205
warnOnFailure=True,

0 commit comments

Comments
 (0)