Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ jobs:
chown openshell-test: "/run/user/$(id -u openshell-test)"
chmod 700 "/run/user/$(id -u openshell-test)"
chown -R openshell-test: .
for dir in /root/.cargo /root/.rustup /root/.local/share/mise /opt/mise; do
# Root's home is mode 0700, so the rootless user cannot traverse it
# to reach mise (/root/.local/bin) or cargo (/root/.cargo/bin) on
# PATH. Add the search bit so those binaries are reachable.
chmod a+x /root
for dir in /root/.cargo /root/.rustup /root/.local/bin /root/.local/share/mise /opt/mise; do
[ -d "$dir" ] && chmod -R a+rX "$dir"
done

Expand All @@ -107,9 +111,10 @@ jobs:
runuser -u openshell-test -- env \
XDG_RUNTIME_DIR="/run/user/${TESTUID}" \
HOME="/home/openshell-test" \
PATH="/root/.cargo/bin:/opt/mise/shims:/opt/mise/bin:${PATH}" \
PATH="/root/.cargo/bin:/root/.local/bin:/opt/mise/shims:/opt/mise/bin:${PATH}" \
CARGO_HOME="/root/.cargo" \
RUSTUP_HOME="/root/.rustup" \
MISE_CACHE_DIR="/home/openshell-test/.cache/mise" \
OPENSHELL_SUPERVISOR_IMAGE="${OPENSHELL_SUPERVISOR_IMAGE}" \
OPENSHELL_REGISTRY="${OPENSHELL_REGISTRY}" \
OPENSHELL_REGISTRY_HOST="${OPENSHELL_REGISTRY_HOST}" \
Expand Down
Loading