On Fri, Jan 29, 2021 at 03:26:18PM +0000, Daniel P. Berrangé wrote:
When we attempt to build libvirt in Copr, the test suite times out
on
s390 builds.
IIUC, this is because s390 in Copr is using a QEMU emulated system,
not native hardware, and thus is massively slower to execute.
We don't want to bump up the default test suite timeout unconditonally,
as that makes it slower to diagnose problems for the common case
where the build env is not emulated.
Is there a good way to detect that the build is in an emulated copr
env rather than native. Does Copr / mock set any env variable to
show that you're emulated ?
systemd-detect-virt ?
I've not tested, but I'd expect it to say 'qemu' for the emulated case
and 'kvm' for the vm case?
But some of our s390x builders are ZVM instances and it says 'zvm'
there.
kevin