Skip to content

Commit 3963b0f

Browse files
authored
ci: fix offline tests on ubuntu-latest (#1283)
1 parent 065d90a commit 3963b0f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,16 @@ jobs:
4646
- name: test (offline)
4747
if: matrix.conf.os == 'ubuntu-latest'
4848
run: |
49+
# Look at me. I am the captain now.
50+
sudo sysctl -w kernel.unprivileged_userns_clone=1
51+
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
52+
4953
# We use `unshare` to "un-share" the default networking namespace,
5054
# in effect running the tests as if the host is offline.
5155
# This in turn effectively exercises the correctness of our
5256
# "online-only" test markers, since any test that's online
5357
# but not marked as such will fail.
54-
# We also explicitly exclude the intergration tests, since these are
58+
# We also explicitly exclude the integration tests, since these are
5559
# always online.
5660
unshare --map-root-user --net make test T="test/unit" TEST_ARGS="--skip-online -vv --showlocals"
5761

0 commit comments

Comments
 (0)