summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexey Bogdanenko <alexey@bogdanenko.com>2018-12-08 15:35:30 +0300
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>2021-01-25 15:05:18 +0100
commit974431a70775d5127cd973c4b4705d2cf8884011 (patch)
tree08510f8d90c6b50ac98746a726cea89b9265ed4e /test
parentf44fcdde656036f0388fc8244b8960c1873a3a08 (diff)
downloadsystemd-974431a70775d5127cd973c4b4705d2cf8884011.tar.gz
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. (cherry picked from commit 1e5548c0e0962424b6ca5fdfd35c866b70760c8f) Related: #1642728
Diffstat (limited to 'test')
-rwxr-xr-xtest/udev-test.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 3517feab15..eb76ebd72e 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;
}