Bug 103527 - libinput-test-suite-runner : Failed to create udev rules directory (No such file or directory)
Summary: libinput-test-suite-runner : Failed to create udev rules directory (No such f...
Alias: None
Product: Wayland
Classification: Unclassified
Component: libinput (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Wayland bug list
QA Contact:
Depends on:
Reported: 2017-10-31 16:03 UTC by Pierre-Yves
Modified: 2017-11-01 21:53 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Description Pierre-Yves 2017-10-31 16:03:55 UTC
I would like to enable checks while building the libinput 1.9.1 package, but I can't manage to get this test working. Could you advise please ?

--- command ---
/home/build/YPKG/root/libinput/build/libinput-1.9.1/test/symbols-leak-test.in /home/build/YPKG/root/libinput/build/libinput-1.9.1

4/4 libinput-test-suite-runner              FAIL     0.01 s

--- command ---
--- stderr ---
FAILED: aborting
Failed to create udev rules directory (No such file or directory)
in litest_init_udev_rules() (../test/litest.c:1082)
Comment 1 Peter Hutterer 2017-10-31 23:26:34 UTC
are you running as root? the test suite needs to create files in /var/run and /etc/ for udev to work correctly and it needs to create uinput devices.

if you do run as root, mkdir /run/udev and that should fix the issue.
Comment 2 Peter Hutterer 2017-11-01 05:08:00 UTC
commit 8a2177b3ba18f3fd3050afa37cb194bc803ea209
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Wed Nov 1 14:12:01 2017 +1000

    test: mkdir -p the udev rules and hwdb directories
Comment 3 Pierre-Yves 2017-11-01 08:59:48 UTC
Thanks for the quick answer !

No indeed, it's executed with fakeroot.
Is there an option to skip this test so at least the other tests can be executed when the package is built ?
Comment 4 Peter Hutterer 2017-11-01 21:53:41 UTC
the patchset I pushed yesterday together with 8a2177b tests for /dev/uinput as well. If that isn't present, then it'll skip the test. And it already does so anyway when *not* running as root so that's always an option.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.