mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
tests: Mount without updating mtab in mount.sh
The mount.sh script mixes calls to the regression test 'mount' binary and /sbin/mount. This can result in stale mtab entries being left around after a test run because /sbin/mount adds an mtab entry but the test 'mount' binary, which is also used for unmounting, does not remove mtab entries. To solve this problem, the -n option is passed to /sbin/mount so that it doesn't add an mtab entry when mounting. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: Steve Beattie <steve@nxnw.org> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
parent
d3030f8627
commit
c7d180c43b
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ loop_device="unset"
|
|||
fstype="ext2"
|
||||
|
||||
setup_mnt() {
|
||||
/bin/mount -t${fstype} ${loop_device} ${mount_point}
|
||||
# /bin/mount -t${fstype} ${loop_device} ${mount_bad}
|
||||
/bin/mount -n -t${fstype} ${loop_device} ${mount_point}
|
||||
# /bin/mount -n -t${fstype} ${loop_device} ${mount_bad}
|
||||
}
|
||||
remove_mnt() {
|
||||
mountpoint -q "${mount_point}"
|
||||
|
|
Loading…
Add table
Reference in a new issue