File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -334,9 +334,14 @@ wait_internal () {
334
334
# )
335
335
#
336
336
acquire_lock () {
337
- WB_LOCKFILE=${WB_LOCKFILE:-/ tmp/ workbench.lock}
338
- info lockfile " $( white " waiting to acquire the lock on ${WB_LOCKFILE} " ) "
339
- exec {lock_fd}> " $WB_LOCKFILE "
340
- flock $lock_fd
341
- info lockfile " $( green " lock acquired" ) "
337
+ # Nomad Exec does not support current lockfile implementation.
338
+ # Nomad Exec is a local test environment for "nomadcloud" and needs `sudo`.
339
+ if test " ${WB_BACKEND} " ! = " nomadexec"
340
+ then
341
+ WB_LOCKFILE=${WB_LOCKFILE:-/ tmp/ workbench.lock}
342
+ info lockfile " $( white " waiting to acquire the lock on ${WB_LOCKFILE} " ) "
343
+ exec {lock_fd}> " $WB_LOCKFILE "
344
+ flock $lock_fd
345
+ info lockfile " $( green " lock acquired" ) "
346
+ fi
342
347
}
You can’t perform that action at this time.
0 commit comments