+ set -e + guix environment --version warning: daemon is running as root, so using `--build-users-group' is highly recommended guix environment (GNU Guix) 0.9.0 Copyright (C) 2015 the Guix authors License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. + tmpdir=t-guix-environment-9613 + trap 'rm -r "$tmpdir"' EXIT + mkdir t-guix-environment-9613 + guix environment --container --ad-hoc --bootstrap guile-bootstrap -- guile -c '(exit 42)' accepted connection from pid 9621, user root (trusted) + test 42 = 42 + mount_test_code=' (use-modules (ice-9 rdelim) (ice-9 match) (srfi srfi-1)) (define mappings (filter-map (lambda (line) (match (string-split line #\space) ;; Empty line. (("") #f) ;; Ignore these types of file systems. ((_ _ (or "tmpfs" "proc" "sysfs" "devtmpfs" "devpts" "cgroup" "mqueue") _ _ _) #f) ((_ mount _ _ _ _) mount))) (string-split (call-with-input-file "/proc/mounts" read-string) #\newline))) (for-each (lambda (mount) (display mount) (newline)) mappings)' + guix environment --container --ad-hoc --bootstrap guile-bootstrap -- guile -c ' (use-modules (ice-9 rdelim) (ice-9 match) (srfi srfi-1)) (define mappings (filter-map (lambda (line) (match (string-split line #\space) ;; Empty line. (("") #f) ;; Ignore these types of file systems. ((_ _ (or "tmpfs" "proc" "sysfs" "devtmpfs" "devpts" "cgroup" "mqueue") _ _ _) #f) ((_ mount _ _ _ _) mount))) (string-split (call-with-input-file "/proc/mounts" read-string) #\newline))) (for-each (lambda (mount) (display mount) (newline)) mappings)' accepted connection from pid 9627, user root (trusted) ++ wc -l + test 4 -eq 3 + rm -r t-guix-environment-9613