Uploaded image for project: 'Community Linux Engineering'
  1. Community Linux Engineering
  2. CLE-1856

Implement Fedora Media Writer tests

    • 8
    • Nexus Sprint 04
    • rhel-cle-nexus

      I've recently overhauled https://fedoraproject.org/wiki/QA:Testcase_USB_fmw and simplified the verification phase quite a bit - currently we just need to run `checkisomd5` or `cmp` (or ideally both). At this point, it would be nice if we could automate it. Manually running the test on Fedora 41/42/43/Flathub (and also Windows/macOS) is tiring, and I do it in a Fedora VM anyway, just redirecting my USB stick into it. In OpenQA, we wouldn't be redirecting a physical usb stick, it would be an emulated device, but it could do 90% of verification for us, and the remaining 10% "bare metal" bits could then be tested on any of 41/42/43/Flathub, just once, saving us a lot of manual time.

      OpenQA could:
      1. install FMW
      2. test writing the image (or even possibly multiple, let's say one Live and one netinst-style)
      3. verify the written image
      4. test flash drive restoration (if this was difficult for any reason, it's OK to keep it to the manual test version instead)

      I'm not sure how easy or difficult this might be. We would definitely need a virtual drive to act like a flash drive. I think some params can be set in qemu/libvirt to make it look like one. If hotplugging in/out is possible, it would be even better (for example test unplugging after writing and replugging before restoration), but if that's hard to do, then just booting the system with the flash drive already plugged in and not ejecting it is still a valuable automated test.

              lruzicka@redhat.com Lukas Ruzicka
              cle_bot CLE bot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: