test: use flock when calling mkfs.btrfs
As stated in https://github.com/systemd/systemd/issues/21819#issuecomment-1064377645 `mkfs.btrfs` doesn't hold the lock for the whole duration of `mkfs.btrfs`, thus causing unexpected races & test fails. Let's wrap the `mkfs.btrfs` calls in an flock wrapper to mitigate this. Hopefully fixes: #21819
This commit is contained in:
committed by
Yu Watanabe
parent
ed1cbdc347
commit
41d1aaea64
@@ -141,6 +141,7 @@ BASICTOOLS=(
|
||||
echo
|
||||
env
|
||||
false
|
||||
flock
|
||||
getconf
|
||||
getent
|
||||
getfacl
|
||||
|
||||
Reference in New Issue
Block a user