On 28/10/2015, Ludovic Courtès <l...@gnu.org> wrote: > Alex Vong <alexvong1...@gmail.com> skribis: > >> On 27/10/2015, Ludovic Courtès <l...@gnu.org> wrote: > > [...] > >>> Do you still experience the test failures mentioned in that report? If >>> not, could you email 21...@debbugs.gnu.org, specifying which commit >>> works for you? >>> >> Yes, there are 4 tests still failing with the latest master branch >> without unprivileged container. > > Which tests? Does tests/container.scm pass? > It doesn't pass if I run as unprivileged user. It passes if I run as root. I will be mailing the test logs on another mail.
>> But there is a new problem, tests/guix-environment-container.sh fails >> even when running the tests as root. The test log is in the >> attachment. > > [...] > >> (for-each (lambda (mount) >> (display mount) >> (newline)) >> mappings)' >> accepted connection from pid 9627, user root (trusted) >> ++ wc -l >> + test 4 -eq 3 > > Could you apply the patch below, run: > > make check TESTS=tests/guix-environment-container.sh > > and send ‘guix-environment-container.log’? > Sure! It is in the attachment. (Note that I run the test as root to bypass the unprivileged container issue.) > Also, what does: > > make check TESTS=tests/container.scm > > report? > I will send the test log in another mail. > TIA! > > Ludo’. > > Cheers, Alex
+ 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 <http://gnu.org/licenses/gpl.html> 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