+ 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-12182 + trap 'rm -r "$tmpdir"' EXIT + mkdir t-guix-environment-12182 + guix environment --container --ad-hoc --bootstrap guile-bootstrap -- guile -c '(exit 42)' accepted connection from pid 12190, 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 12196, user root (trusted) + cat t-guix-environment-12182/mounts / /home/alexvong1995/guix /home/alexvong1995/guix/test-tmp/store/bdg31cb28ki1b0xi4rqrc721hadn3lfw-bash /home/alexvong1995/guix/test-tmp/store/92vjphkx545ndw82vn4fp9m3xxkv3mzd-guile-bootstrap-2.0 ++ wc -l + test 4 -eq 3 + rm -r t-guix-environment-12182