Bug-Debian: https://bugs.debian.org/
1129189
Added-by: Rob Browning <rlb@defaultvalue.org>
README-Debian: The bytecomp-tests--dest-mountpoint should now only run
where bwrap works.
.
It doesn't, in some environments, like a Debian sbuild unshare.
Gbp-Pq: Name 0024-bytecomp-tests-dest-mountpoint-only-run-test-if-bwra.patch
(let ((bwrap (executable-find "bwrap"))
(emacs (expand-file-name invocation-name invocation-directory)))
(skip-unless bwrap)
+ ;; Check that bwrap works in the current environment. It does not
+ ;; in a debian sbuild unshare, for example.
+ (skip-unless (zerop (call-process bwrap nil t nil "--ro-bind" "/" "/"
+ "true")))
(skip-unless (file-executable-p bwrap))
(skip-unless (not (file-remote-p bwrap)))
(skip-unless (file-executable-p emacs))