Commit 18b69f73 authored by Simon McVittie's avatar Simon McVittie

CapsuleTest: Tolerate bwrap not being installed at all

IPC::Run::run dies if the executable can't be found, but returns false
if the executable exists and exits nonzero, so use env(1) instead of
bwrap(1) as the executable.
Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent bb800372
......@@ -275,7 +275,7 @@ skipped (as if via C<plan skip_all =E<gt> ...>), and exit.
sub skip_all_unless_bwrap {
if (! run([qw(
bwrap --ro-bind / / --unshare-ipc --unshare-net
env bwrap --ro-bind / / --unshare-ipc --unshare-net
--unshare-pid --unshare-user --unshare-uts true
)], '>&2')) {
plan(skip_all => 'Cannot run bwrap');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment