]> git.ipfire.org Git - thirdparty/systemd.git/commit
tests: run `udevadm settle` after `sfdisk` (#8610)
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 29 Mar 2018 04:20:57 +0000 (07:20 +0300)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 29 Mar 2018 04:20:57 +0000 (13:20 +0900)
commit053edc5b04d8130a344eb1746f4b14a9823ac3ad
tree02d39be1726e05dbfe873e3168cfdfdd61b89aee
parent106f12a08fcacef713438fc055872592399deeed
tests: run `udevadm settle` after `sfdisk` (#8610)

This makes the script wait for the newly created partition to
show up before trying to put a filesystem on it, which should
prevent the tests from failing with the following error:
```
New situation:
Disklabel type: dos
Disk identifier: 0x3541a0ec

Device       Boot  Start    End Sectors  Size Id Type
/dev/loop6p1        2048 800767  798720  390M 83 Linux
/dev/loop6p2      800768 819199   18432    9M 83 Linux

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
The file /dev/loop6p1 does not exist and no size was specified.
make: *** [setup] Error 1
F: Failed to mkfs -t ext4
Makefile:4: recipe for target 'setup' failed
```
test/test-functions