On Tue, 7 Apr 2020, Paul Howarth wrote:
> Is there a recommended way for detecting when a package is being
> built under mock? 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.
Why not test for the presence of /dev/log before running such tests?
Well, in the particular case of that test, checking whether /dev/log
exists *is* the test.
Scott