curtin's tests assume `udevadm` is present on test systems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This is not the case in build chroots, so we see the following test failures during package build:
=======
ERROR: test_start_
-------
Traceback (most recent call last):
File "/usr/lib/
return func(*args, **keywargs)
File "/<<PKGBUILDDIR
clear_
File "/<<PKGBUILDDIR
udev.
File "/<<PKGBUILDDIR
return log_call(func, *args, **kwargs)
File "/<<PKGBUILDDIR
func, *args, **kwargs)
File "/<<PKGBUILDDIR
return func(*args, **kwargs)
File "/<<PKGBUILDDIR
util.
File "/<<PKGBUILDDIR
return _subp(*args, **kwargs)
File "/<<PKGBUILDDIR
raise ProcessExecutio
ProcessExecutio
Command: ['udevadm', 'settle']
Exit code: -
Reason: [Errno 2] No such file or directory
Stdout: ''
Stderr: ''
=======
ERROR: test that we skip zfs modprobe on unsupported platforms
-------
Traceback (most recent call last):
File "/usr/lib/
return func(*args, **keywargs)
File "/<<PKGBUILDDIR
clear_
File "/<<PKGBUILDDIR
udev.
File "/<<PKGBUILDDIR
return log_call(func, *args, **kwargs)
File "/<<PKGBUILDDIR
func, *args, **kwargs)
File "/<<PKGBUILDDIR
return func(*args, **kwargs)
File "/<<PKGBUILDDIR
util.
File "/<<PKGBUILDDIR
return _subp(*args, **kwargs)
File "/<<PKGBUILDDIR
raise ProcessExecutio
ProcessExecutio
Command: ['udevadm', 'settle']
Exit code: -
Reason: [Errno 2] No such file or directory
Stdout: ''
Stderr: ''
(from https:/
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Dan Watkins (community): Approve
-
Diff: 457 lines (+165/-77)10 files modifiedtests/unittests/helpers.py (+52/-3)
tests/unittests/test_apt_custom_sources_list.py (+2/-0)
tests/unittests/test_apt_source.py (+2/-0)
tests/unittests/test_block.py (+11/-7)
tests/unittests/test_block_zfs.py (+24/-20)
tests/unittests/test_clear_holders.py (+5/-2)
tests/unittests/test_commands_block_meta.py (+4/-0)
tests/unittests/test_commands_collect_logs.py (+2/-0)
tests/unittests/test_gpg.py (+50/-44)
tests/unittests/test_util.py (+13/-1)
This bug is fixed with commit f885a782 to curtin on branch master. /git.launchpad. net/curtin/ commit/ ?id=f885a782
To view that commit see the following URL:
https:/