Skip to content

Commit 505d71c

Browse files
authored
[ Fix ]: Integration-Tests Linux error (#307)
Co-authored-by: Pankhur Dhaila <pankhur94@users.noreply.github.com>
1 parent 2582355 commit 505d71c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.pipelines/integration-test.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,12 @@ jobs:
9696
# By default linux agents do not have a real display so use the virtual framebuffer
9797
# Tests are run in a dbus session after creating a keyring password for compatibility with Keytar
9898
# See packages/electron/README.md for more details
99-
- script: >-
100-
dbus-run-session -- sh -c
101-
"echo 'keyringPassword' | gnome-keyring-daemon -r -d --unlock ;
102-
xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' pnpm test:integration --verbose"
99+
- script: |
100+
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
101+
dbus-run-session -- sh -c "
102+
echo 'keyringPassword' | gnome-keyring-daemon -r -d --unlock ;
103+
xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' pnpm test:integration --verbose
104+
"
103105
displayName: pnpm test:integration - Linux
104106
env:
105107
# Couldn't get this variable to be ingested in the steps above, but this works

0 commit comments

Comments
 (0)