Port allows-stdout test to overly-suspicious bwrap
* test/src/emacs-tests.el (emacs-tests/bwrap/allows-stdout): Skip test if bwrap prohibits even "echo Hi", which it does on my Ubuntu 24.10 platform. This extra check means we no longer need to test separately whether the filter is readable.
This commit is contained in:
parent
2efffbe773
commit
34166dcf9c
1 changed files with 7 additions and 1 deletions
|
@ -183,7 +183,13 @@
|
|||
(skip-unless bash)
|
||||
(skip-unless bwrap)
|
||||
(skip-unless (file-executable-p emacs))
|
||||
(skip-unless (file-readable-p filter))
|
||||
(skip-unless
|
||||
(let ((command
|
||||
(concat
|
||||
(shell-quote-argument (file-name-unquote bwrap))
|
||||
" --ro-bind / / --seccomp 20 -- echo Hi 20< "
|
||||
(shell-quote-argument (file-name-unquote filter)))))
|
||||
(zerop (call-process bash nil nil nil "-c" command))))
|
||||
(should-not (file-remote-p bwrap))
|
||||
(should-not (file-remote-p emacs))
|
||||
(should-not (file-remote-p filter))
|
||||
|
|
Loading…
Add table
Reference in a new issue