Re: Detecting when building under mock?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 07. 04. 20 v 17:43 Scott Talbert napsal(a):
> Is there a recommended way for detecting when a package is being built under mock?

In Mock, we try as much as possible mimic normal system. So - no, there is no way I can recommend.

> I have a package where some tests
> fail due to various things not being present in a mock container, e.g, /dev/log doesn't exist.  I can just disable these
> tests downstream, but upstream might take a change if I can wrap them in a "if !mock" condition.

/dev/log is handled by journalctl (but not owned, which is likely packaging bug).
In the buildchroot the systemd (and therefore journalctl) is not running. IMHO you should check if system logging is
enabled - which is beyond my knowledge.

-- 
Miroslav Suchy, RHCA
Red Hat, Associate Manager ABRT/Copr, #brno, #fedora-buildsys
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux