From: Alex Vong <alexvong1995@gmail.com>
To: 23834@debbugs.gnu.org
Subject: bug#23834: 9/582 tests failed on machine running debian testing
Date: Thu, 23 Jun 2016 21:31:53 +0800 [thread overview]
Message-ID: <87eg7o3uba.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 261 bytes --]
Hi guix,
The tests 'tests/substitute.scm' and 'tests/containers.scm' failed, the
relevant logs are attched below.
The machine has the following 'uname -a' output:
Linux debian 4.6.0-1-amd64 #1 SMP Debian 4.6.1-1 (2016-06-06) x86_64 GNU/Linux
Thanks,
Alex
[-- Attachment #2: test-suite.log --]
[-- Type: application/octet-stream, Size: 44400 bytes --]
[-- Attachment #3: substitute.log --]
[-- Type: application/octet-stream, Size: 11100 bytes --]
[-- Attachment #4: containers.log --]
[-- Type: application/octet-stream, Size: 5443 bytes --]
test-name: call-with-container, exit with 0 when there is no error
location: /home/alexvong1995/scm/guix/tests/containers.scm:38
source:
+ (test-assert
+ "call-with-container, exit with 0 when there is no error"
+ (zero? (call-with-container
+ '()
+ (const #t)
+ #:namespaces
+ '(user))))
result: SKIP
test-name: call-with-container, user namespace
location: /home/alexvong1995/scm/guix/tests/containers.scm:42
source:
+ (test-assert
+ "call-with-container, user namespace"
+ (zero? (call-with-container
+ '()
+ (lambda ()
+ (assert-exit
+ (and (zero? (getuid)) (zero? (getgid)))))
+ #:namespaces
+ '(user))))
result: SKIP
test-name: call-with-container, uts namespace
location: /home/alexvong1995/scm/guix/tests/containers.scm:50
source:
+ (test-assert
+ "call-with-container, uts namespace"
+ (zero? (call-with-container
+ '()
+ (lambda ()
+ (sethostname "test-container")
+ (primitive-exit 0))
+ #:namespaces
+ '(user uts))))
result: SKIP
test-name: call-with-container, pid namespace
location: /home/alexvong1995/scm/guix/tests/containers.scm:60
source:
+ (test-assert
+ "call-with-container, pid namespace"
+ (zero? (call-with-container
+ '()
+ (lambda ()
+ (match (primitive-fork)
+ (0 (assert-exit (= 2 (getpid))))
+ (pid (primitive-exit
+ (match (waitpid pid)
+ ((_ . status)
+ (status:exit-val status)))))))
+ #:namespaces
+ '(user pid))))
result: SKIP
test-name: call-with-container, mnt namespace
location: /home/alexvong1995/scm/guix/tests/containers.scm:75
source:
+ (test-assert
+ "call-with-container, mnt namespace"
+ (zero? (call-with-container
+ '(("none" device "/testing" "tmpfs" () #f #f))
+ (lambda ()
+ (assert-exit (file-exists? "/testing")))
+ #:namespaces
+ '(user mnt))))
result: SKIP
test-name: call-with-container, mnt namespace, wrong bind mount
location: /home/alexvong1995/scm/guix/tests/containers.scm:82
source:
+ (test-equal
+ "call-with-container, mnt namespace, wrong bind mount"
+ `(system-error ,ENOENT)
+ (catch 'system-error
+ (lambda ()
+ (call-with-container
+ '(("/does-not-exist"
+ device
+ "/foo"
+ "none"
+ (bind-mount)
+ #f
+ #f))
+ (const #t)
+ #:namespaces
+ '(user mnt)))
+ (lambda args
+ (list 'system-error (system-error-errno args)))))
result: SKIP
test-name: call-with-container, all namespaces
location: /home/alexvong1995/scm/guix/tests/containers.scm:94
source:
+ (test-assert
+ "call-with-container, all namespaces"
+ (zero? (call-with-container
+ '()
+ (lambda () (primitive-exit 0)))))
result: SKIP
test-name: container-excursion
location: /home/alexvong1995/scm/guix/tests/containers.scm:100
source:
+ (test-assert
+ "container-excursion"
+ (call-with-temporary-directory
+ (lambda (root)
+ (match (list (pipe) (pipe))
+ (((start-in . start-out) (end-in . end-out))
+ (define (container)
+ (close end-out)
+ (close start-in)
+ (write 'ready start-out)
+ (close start-out)
+ (read end-in)
+ (close end-in))
+ (define (namespaces pid)
+ (let ((pid (number->string pid)))
+ (map (lambda (ns)
+ (readlink (string-append "/proc/" pid "/ns/" ns)))
+ '("user" "ipc" "uts" "net" "pid" "mnt"))))
+ (let* ((pid (run-container root '() %namespaces 1 container))
+ (container-namespaces (namespaces pid))
+ (result
+ (begin
+ (close start-out)
+ (read start-in)
+ (close start-in)
+ (container-excursion
+ pid
+ (lambda ()
+ (match (primitive-fork)
+ (0
+ (assert-exit
+ (equal?
+ container-namespaces
+ (namespaces (getpid)))))
+ (fork-pid
+ (match (waitpid fork-pid)
+ ((_ . status)
+ (primitive-exit
+ (status:exit-val
+ status)))))))))))
+ (close end-in)
+ (write 'done end-out)
+ (close end-out)
+ (waitpid pid)
+ (zero? result)))))))
actual-value: #f
actual-error:
+ (system-error
+ "clone"
+ "~d: ~A"
+ (2080505873 "Operation not permitted")
+ (1))
result: FAIL
next reply other threads:[~2016-06-23 13:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-23 13:31 Alex Vong [this message]
2016-06-24 23:15 ` bug#23834: 9/582 tests failed on machine running debian testing Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eg7o3uba.fsf@gmail.com \
--to=alexvong1995@gmail.com \
--cc=23834@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.