Skip to content
Snippets Groups Projects
Commit 18b69f73 authored by Simon McVittie's avatar Simon McVittie
Browse files

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: default avatarSimon McVittie <smcv@collabora.com>
parent bb800372
Branches
Tags
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment