]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: use flock when calling mkfs.btrfs 22717/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 11 Mar 2022 17:15:03 +0000 (18:15 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Mar 2022 01:28:07 +0000 (10:28 +0900)
commit41d1aaea6425abb10ef82bc6065a70da376e4fbf
tree42723f039883a054f36bde1b51ab394c6e78d902
parented1cbdc347aeca077a7f6e88eda590340c004c34
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
test/test-functions
test/units/testsuite-64.sh