mirror of
https://github.com/psankar/simplefs.git
synced 2025-07-30 09:24:12 +02:00
simple-test: call umount from cleanup() only when mount point exists
this will avoid errors when cleanup() called before doing actuall job, IOW just after make and before all tests.
This commit is contained in:
parent
0a7059cd35
commit
8567b0e113
@ -89,7 +89,7 @@ function do_read_operations()
|
||||
function cleanup()
|
||||
{
|
||||
cd "$root_pwd"
|
||||
umount -t simplefs "$test_mount_point"
|
||||
[ -d "$test_mount_point" ] && umount -t simplefs "$test_mount_point"
|
||||
lsmod | grep -q simplefs && rmmod "$root_pwd/simplefs.ko"
|
||||
|
||||
# TODO: prompt deletion
|
||||
|
Loading…
x
Reference in New Issue
Block a user