test: explicitly create the /etc/init.d directory
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 12 Jan 2023 18:19:28 +0000 (19:19 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 13 Jan 2023 01:48:40 +0000 (10:48 +0900)
commit7fcf0fab078ed92a4f6c3c3658c0a9dfd67c9601
tree989663984d2258d3a2adda954882241ecb17c21d
parentb7a41491ed8bbfdc4ef1f9fb467a184fd2f131d4
test: explicitly create the /etc/init.d directory

On RHEL/CentOS/Fedora this directory is provided by the chkconfig or
initscripts package, which might not be installed:

testsuite-26.sh[1225]: + [[ -x /usr/lib/systemd/system-generators/systemd-sysv-generator ]]
testsuite-26.sh[1225]: + cat
testsuite-26.sh[2330]: /usr/lib/systemd/tests/testdata/units/testsuite-26.sh: line 299: /etc/init.d/issue-24990: No such file or directory

Follow-up to 5f882cc3ab32636d9242effb2cefad20d92d2ec2.
test/units/testsuite-26.sh