Skip to content

Commit 2ffcb95

Browse files
committed
TSan jobs are privileged
1 parent 2ad3f14 commit 2ffcb95

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.drone.star

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,16 @@ def apply_special(job, special):
366366
job['privileged'] = True
367367
job['environment']['DRONE_EXTRA_PRIVILEGED'] = 'True'
368368

369+
elif special == 'tsan':
370+
job['name'] = 'TSan ' + job['name']
371+
job['privileged'] = True
372+
job['environment']['DRONE_EXTRA_PRIVILEGED'] = 'True'
373+
369374
elif special == 'ubsan':
370375
job['name'] = 'UBSan ' + job['name']
371376
if job['compiler'] == 'gcc':
372377
set_or_append(job['environment'], 'B2_LINKFLAGS', '-fuse-ld=gold')
373378

374-
elif special == 'tsan':
375-
job['name'] = 'TSan ' + job['name']
376-
377379
elif special == 'valgrind':
378380
job['name'] = 'Valgrind ' + job['name']
379381
job['type'] = 'valgrind'

0 commit comments

Comments
 (0)