mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
tests: rm/one-file-system: work around umount failure
* tests/rm/one-file-system (cleanup_): Unmount a/b, rather than "$other_partition_tmpdir", to accommodate those who link /etc/mtab to /proc/mounts. Reported by Gilles Espinasse in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/18508
This commit is contained in:
1 parent
d9cf7c911f
commit
c695781753
2 files changed
+5
-1
No files matched your search
@@ -210,6 +210,7 @@ Geoff Whale geoffw@cse.unsw.EDU.AU
|
||||
Gerald Pfeifer gerald@pfeifer.com
|
||||
Gerhard Poul gpoul@gnu.org
|
||||
Germano Leichsenring germano@jedi.cs.kobe-u.ac.jp
|
||||
Gilles Espinasse g.esp@free.fr
|
||||
Glen Lenker glen.lenker@gmail.com
|
||||
Göran Uddeborg goeran@uddeborg.se
|
||||
Guochun Shi gshi@ncsa.uiuc.edu
|
||||
|
||||
@@ -27,7 +27,10 @@ require_root_
|
||||
# If used, these must *follow* test-lib.sh.
|
||||
cleanup_()
|
||||
{
|
||||
umount "$other_partition_tmpdir"
|
||||
# When you take the undesirable shortcut of making /etc/mtab a link
|
||||
# to /proc/mounts, unmounting "$other_partition_tmpdir" would fail.
|
||||
# So, here we unmount a/b instead.
|
||||
umount a/b
|
||||
rm -rf "$other_partition_tmpdir"
|
||||
}
|
||||
. "$abs_srcdir/other-fs-tmpdir"
|
||||
|
||||
Reference in new issue
Block a user