From: Alexey Bogdanenko Date: Sat, 8 Dec 2018 12:35:30 +0000 (+0300) Subject: udev-test: fix missing directory test/run X-Git-Tag: v240~90^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e5548c0e0962424b6ca5fdfd35c866b70760c8f;p=thirdparty%2Fsystemd.git udev-test: fix missing directory test/run Fixes the following error: Failed to mount test /run: No such file or directory By the time command "./test-udev check" calls function "fake_filesystems", directory "test/run" must be present. --- diff --git a/test/udev-test.pl b/test/udev-test.pl index 3517feab155..eb76ebd72ef 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1558,6 +1558,11 @@ sub udev_setup { system("rm", "-rf", "$udev_run"); + if (!mkdir($udev_run)) { + warn "unable to create directory $udev_run"; + return 0; + } + return 1; }