diff options
author | 2018-12-08 15:35:30 +0300 | |
---|---|---|
committer | 2018-12-09 20:53:11 +0300 | |
commit | 1e5548c0e0962424b6ca5fdfd35c866b70760c8f (patch) | |
tree | 6ad4041f85d26db96fde071f453af3b7c86a49db /test | |
parent | udev-test: fix test skip condition (diff) | |
download | systemd-1e5548c0e0962424b6ca5fdfd35c866b70760c8f.tar.gz systemd-1e5548c0e0962424b6ca5fdfd35c866b70760c8f.tar.bz2 systemd-1e5548c0e0962424b6ca5fdfd35c866b70760c8f.zip |
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.
Diffstat (limited to 'test')
-rwxr-xr-x | test/udev-test.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl index 3517feab1..eb76ebd72 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; } |