backport of commit bed29bf02f9ca01d615716bc0edab523717b79b3 (#17979)

This pull request was automerged via backport-assistant
This commit is contained in:
hc-github-team-nomad-core 2023-07-19 09:16:55 -05:00 committed by GitHub
parent c9ef870f96
commit bff3663626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 12 deletions

View File

@ -105,18 +105,14 @@ var ExecTaskStreamingBasicCases = []struct {
Stdout: "hello from stdin\r\nhello from stdin\r\n",
ExitCode: 0,
},
// t.Skip: https://github.com/hashicorp/nomad/pull/14600
// This test is broken in CircleCI only. It works on GHA in both 20.04 and
// 22.04 and has been verified to work on real Nomad; temporarily
// commenting-out so that we don't block unrelated CI runs.
// {
// Name: "tty: children processes",
// Command: "(( sleep 3; echo from background ) & ); echo from main; exec sleep 1",
// Tty: true,
// // when using tty; wait for lead process only, like `docker exec -it`
// Stdout: "from main\r\n",
// ExitCode: 0,
// },
{
Name: "tty: children processes",
Command: "(( sleep 3; echo from background ) & ); echo from main; exec sleep 1",
Tty: true,
// when using tty; wait for lead process only, like `docker exec -it`
Stdout: "from main\r\n",
ExitCode: 0,
},
}
func TestExecTaskStreamingBasicResponses(t *testing.T, driver *DriverHarness, taskID string) {