Skip to content

Commit

Permalink
Merge pull request #2555 from crazy-max/compose-test-cgroup
Browse files Browse the repository at this point in the history
test: compose cgroup property
  • Loading branch information
tonistiigi authored Jun 25, 2024
2 parents 9cebd0c + 5599699 commit 076e19d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bake/compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,19 @@ services:
require.NoError(t, err)
}

func TestCgroup(t *testing.T) {
var dt = []byte(`
services:
scratch:
build:
context: ./webapp
cgroup: private
`)

_, err := ParseCompose([]composetypes.ConfigFile{{Content: dt}}, nil)
require.NoError(t, err)
}

// chdir changes the current working directory to the named directory,
// and then restore the original working directory at the end of the test.
func chdir(t *testing.T, dir string) {
Expand Down

0 comments on commit 076e19d

Please sign in to comment.