tests: 'guix-environment-container.sh' works when run from a tmpfs.
Fixes <http://bugs.gnu.org/22004>. Reported by Ting-Wei Lan <lantw44@gmail.com>. * tests/guix-environment-container.sh (mount_test_code): Add 'match' clause to ignore "/"; augment clause that ignores specific file system types such that it does not ignore parent mount points.master
parent
40f788b9f6
commit
1250034d5a
|
@ -65,10 +65,15 @@ mount_test_code="
|
||||||
(match (string-split line #\space)
|
(match (string-split line #\space)
|
||||||
;; Empty line.
|
;; Empty line.
|
||||||
((\"\") #f)
|
((\"\") #f)
|
||||||
;; Ignore these types of file systems.
|
;; Ignore the root file system.
|
||||||
((_ _ (or \"tmpfs\" \"proc\" \"sysfs\" \"devtmpfs\"
|
((_ \"/\" _ _ _ _)
|
||||||
\"devpts\" \"cgroup\" \"mqueue\") _ _ _)
|
|
||||||
#f)
|
#f)
|
||||||
|
;; Ignore these types of file systems, except if they
|
||||||
|
;; correspond to a parent file system.
|
||||||
|
((_ mount (or \"tmpfs\" \"proc\" \"sysfs\" \"devtmpfs\"
|
||||||
|
\"devpts\" \"cgroup\" \"mqueue\") _ _ _)
|
||||||
|
(and (string-prefix? mount (getcwd))
|
||||||
|
mount))
|
||||||
((_ mount _ _ _ _)
|
((_ mount _ _ _ _)
|
||||||
mount)))
|
mount)))
|
||||||
(string-split (call-with-input-file \"/proc/mounts\" read-string)
|
(string-split (call-with-input-file \"/proc/mounts\" read-string)
|
||||||
|
|
Reference in New Issue