From 209edee87dab0114c8f2b8849c1ccba95db86691 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Mon, 4 May 2026 18:13:34 -0500 Subject: [PATCH] bytecomp-tests--dest-mountpoint: only run test if bwrap works Bug-Debian: https://bugs.debian.org/1129189 Added-by: Rob Browning 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 --- test/lisp/emacs-lisp/bytecomp-tests.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el index 2bc096ff2df..20eb0022bc4 100644 --- a/test/lisp/emacs-lisp/bytecomp-tests.el +++ b/test/lisp/emacs-lisp/bytecomp-tests.el @@ -1715,6 +1715,10 @@ mountpoint (Bug#44631)." (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)) -- 2.30.2