Assume /src/pkg/compose/testdata absolute workingdir to make tests reproducible

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2023-11-21 15:16:40 +01:00 committed by Nicolas De loof
parent 0ab21a2080
commit b1a26dac1d
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ func testContainer(service string, id string, oneOff bool) moby.Container {
}
func containerLabels(service string, oneOff bool) map[string]string {
workingdir, _ := filepath.Abs("testdata")
workingdir := "/src/pkg/compose/testdata"
composefile := filepath.Join(workingdir, "compose.yaml")
labels := map[string]string{
compose.ServiceLabel: service,