mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-27 05:37:45 +00:00
fix: disable shm usage in container builds (#111787)
* fix: disable shm usage in container builds * ci: use EGL * ci: use swiftshader * ci: disable shm for unittests
This commit is contained in:
@@ -6,6 +6,8 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
ROOT=$(dirname $(dirname $(realpath "$0")))
|
||||
else
|
||||
ROOT=$(dirname $(dirname $(readlink -f $0)))
|
||||
# Electron 6 introduces a chrome-sandbox that requires root to run. This can fail. Disable sandbox via --no-sandbox.
|
||||
LINUX_EXTRA_ARGS="--no-sandbox --disable-dev-shm-usage --use-gl=swiftshader"
|
||||
fi
|
||||
|
||||
cd $ROOT
|
||||
@@ -34,5 +36,5 @@ else
|
||||
cd $ROOT ; \
|
||||
ELECTRON_ENABLE_LOGGING=1 \
|
||||
"$CODE" \
|
||||
test/unit/electron/index.js --no-sandbox "$@" # Electron 6 introduces a chrome-sandbox that requires root to run. This can fail. Disable sandbox via --no-sandbox.
|
||||
test/unit/electron/index.js $LINUX_EXTRA_ARGS "$@"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user