]>
Commit | Line | Data |
---|---|---|
bd0ce244 LP |
1 | #! /bin/bash |
2 | # | |
3 | # Verifies the issues described by https://github.com/systemd/systemd/issues/10191 | |
4 | # | |
5 | ||
6 | set -e | |
7 | set -x | |
8 | ||
9 | rm -rf /tmp/test-prefix | |
10 | ||
11 | mkdir /tmp/test-prefix | |
12 | touch /tmp/test-prefix/file | |
13 | ||
14 | systemd-tmpfiles --remove - <<EOF | |
15 | r /tmp/test-prefix | |
16 | r /tmp/test-prefix/file | |
17 | EOF | |
18 | ||
19 | ! test -f /tmp/test-prefix/file | |
20 | ! test -f /tmp/test-prefix | |
21 | ||
22 | mkdir /tmp/test-prefix | |
23 | touch /tmp/test-prefix/file | |
24 | ||
25 | systemd-tmpfiles --remove - <<EOF | |
26 | r /tmp/test-prefix/file | |
27 | r /tmp/test-prefix | |
28 | EOF | |
29 | ||
30 | ! test -f /tmp/test-prefix/file | |
31 | ! test -f /tmp/test-prefix |