You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This tool is used to setup the environment for running the tests. Its name
5
5
# name and location is based on Zuul CI, which can automatically run it.
@@ -129,11 +129,35 @@ if [[ -f "/etc/redhat-release" ]]; then
129
129
fi
130
130
fi
131
131
132
+
# Fail-fast if run on Windows or under WSL1/2 on /mnt/c because it is so slow
133
+
# that we do not support it at all. WSL use is ok, but not on mounts.
134
+
WSL=0
135
+
if [[ "${OS:-}"=="windows" ]];then
136
+
log error "You cannot use Windows build tools for development, try WSL."
137
+
exit 1
138
+
fi
139
+
if grep -qi microsoft /proc/version >/dev/null 2>&1;then
140
+
# resolve pwd symlinks and ensure than we do not run under /mnt (mount)
141
+
if [[ "$(pwd -P || true)"== /mnt/* ]];then
142
+
log warning "Under WSL, you must avoid running from mounts (/mnt/*) due to critical performance issues."
143
+
fi
144
+
WSL=1
145
+
fi
146
+
132
147
if [[ -f"/usr/bin/apt-get" ]];then
133
148
INSTALL=0
134
149
# qemu-user-static is required by podman on arm64
135
150
# python3-dev is needed for headers as some packages might need to compile
136
151
152
+
# if [[ "$WSL" == "0" ]] && [[ "$(sysctl -n kernel.apparmor_restrict_unprivileged_userns)" != "0" ]]; then
153
+
# log warning "AppArmor restricts unprivileged user namespaces, disabling it for testing. See https://github.com/redhat-developer/vscode-extension-tester/issues/1496"
0 commit comments