Add support for setup-ci with custom install dir

This commit is contained in:
Reinier Criel 2026-04-10 10:18:49 -07:00
parent 422963b38a
commit 1635bee387
6 changed files with 135 additions and 6 deletions

View file

@ -84,10 +84,14 @@ export class DockerTestContainer {
}
}
async openShell(shell) {
async openShell(shell, { user } = {}) {
const execArgs = user
? ["exec", "-it", "-u", user, this.containerName, shell]
: ["exec", "-it", this.containerName, shell];
let ptyProcess = pty.spawn(
"docker",
["exec", "-it", this.containerName, shell],
execArgs,
{
name: "xterm-color",
cols: 80,