]> git.ipfire.org Git - thirdparty/systemd.git/commit
test/test-functions: use truncate instead of dd to create testbed image
authorDan Streetman <ddstreet@canonical.com>
Tue, 13 Aug 2019 12:05:06 +0000 (08:05 -0400)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 25 Aug 2019 06:37:51 +0000 (15:37 +0900)
commitadcc450f46047a057365658a5f3296b8eddfa8dd
tree6f13e9830ad84f85a91acab4062339865021fc47
parent84c49ad197d78fb66a6f4d5ac540697ee36b46e1
test/test-functions: use truncate instead of dd to create testbed image

This avoids unnecessary noise in the stderr logs which dd always produces,
such as:

0+0 records in
0+0 records out
0 bytes copied, 0.000155284 s, 0.0 kB/s

Using truncate should not result in any functional change; the image will
still be created as a sparse file of the size specified.
test/test-functions