osbuild / bootc-image-builder

A container for deploying bootable container images.
https://osbuild.org
Apache License 2.0
116 stars 50 forks source link

tmt tests started failing with `E ModuleNotFoundError: No module named 'qmp'` #169

Closed cgwalters closed 7 months ago

cgwalters commented 7 months ago

The tmt tests fell over with

E ModuleNotFoundError: No module named 'qmp'

I don't quite understand how this works, I see sudo -E pip install --user -r test/requirements.txt in the GH actions flow, but what should (did?) trigger that for testing farm/tmt?

cgwalters commented 7 months ago

The rabbit hole goes deeper, trying to run things via tmt locally I get

    report
        how: display
        order: 50
            errr /script-00
                output.txt: /var/tmp/tmt/run-004/plans/all/execute/data/guest/default-0/script-00-1/output.txt
                content:
                    ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
                    pytest: error: argument --basetemp: basetemp must not be empty, the current working directory or any parent directory of it (via addopts config)

                    Shared connection to 127.0.0.1 closed.
        summary: 1 error

okay...

cgwalters commented 7 months ago

This was fixed by https://github.com/osbuild/bootc-image-builder/pull/181/commits/7abaaa77391359a952ee0e93f9617d475e0c81fa I believe, anyways TMT is passing now