[systemd-bugs] [Bug 62344] New: tests depend on /etc/machine-id

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 14 09:34:45 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=62344

          Priority: medium
            Bug ID: 62344
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: tests depend on /etc/machine-id
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: minor
    Classification: Unclassified
                OS: All
          Reporter: martin.pitt at ubuntu.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

"make check" has 6 failures for me:

FAIL: test-unit-name
FAIL: test-unit-file
FAIL: test-id128
FAIL: test-journal
FAIL: test-journal-stream
FAIL: test-journal-verify

Turns out that these rely on an existing /etc/machine-id. Once I create one,
all tests succeed.

Depending on the outside environment is rather bad for unit tests, as this
breaks operation in continuous integration servers, ephemeral chroots, etc. If
these tests need a machine ID, could they use one generated in a temporary
location?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130314/7fa35a5e/attachment-0001.html>


More information about the systemd-bugs mailing list