summaryrefslogtreecommitdiffstats
path: root/tests/gnu/inum_automount.sh
blob: 648ea0563bd8477e76b231ea86cb99a9a8c4d002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# bfs shouldn't trigger automounts unless it descends into them

skip_unless test "$SUDO"
skip_unless command -v systemd-mount &>/dev/null

clean_scratch
mkdir scratch/{foo,automnt}
skip_unless sudo systemd-mount -A -o bind basic scratch/automnt

before=$(inum scratch/automnt)
bfs_diff scratch -inum "$before" -prune
ret=$?
after=$(inum scratch/automnt)

sudo systemd-umount scratch/automnt

((ret == 0 && before == after))