Skip to content

Commit

Permalink
backport of commit 3a833a5 (#14751)
Browse files Browse the repository at this point in the history
This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core committed Sep 29, 2022
1 parent 466aa3f commit 318b055
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions plugins/drivers/testutils/exec_testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,18 @@ var ExecTaskStreamingBasicCases = []struct {
Stdout: "hello from stdin\r\nhello from stdin\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,
},
// 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,
// },
}

func TestExecTaskStreamingBasicResponses(t *testing.T, driver *DriverHarness, taskID string) {
Expand Down

0 comments on commit 318b055

Please sign in to comment.