Public bug reported:
Ubuntu's autopkgtest testsuite is too complex and fragile. README-boot-
test.md says:
The purpose of this test (`CloudImageTest`) is to test the boot of a system
using an iscsi root target. In order to accomplish that, the tests does
1. Download Ubuntu cloud image
2. installs the open-iscsi deb inside
3. collect kernel and initramfs from inside
4. register the image as a read-only iscsi target served by tgt
5. boot kernel and initramfs with a command line to use the image as root.
And additionally attach a local disk for collecting output.
6. provide user-data that executes commands, colects files and writes them
to the output disk and then shuts the system down.
7. extract the collected files from the output disk and inspect them.
Relying on cloud images and patching the image is complex and fragile.
The test coverage could be reached by not relying on cloud images but
building a simple rootfs and try to boot into that.
Packages like dracut and initramfs-tools can be taken as example how to
do it. I am happy to assist reworking the test.
dracut has already a iscsi test case: https://github.com/dracut-
ng/dracut-ng/blob/main/test/TEST-70-ISCSI/test.sh
** Affects: open-iscsi (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143956
Title:
Ubuntu's autopkgtest testsuite is too complex and fragile
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/2143956/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs