Skip to content

Commit c346e79

Browse files
mrodmjsoriano
andauthored
Update how to identify the docker error
Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
1 parent 21a9b5e commit c346e79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/testrunner/runners/system/tester.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,8 @@ func (r *tester) runTest(ctx context.Context, config *testConfig, stackConfig st
17481748
if err != nil {
17491749
// Known issue: do not include this as part of the xUnit results
17501750
// Example: https://buildkite.com/elastic/integrations/builds/22313#01950431-67a5-4544-a720-6047f5de481b/706-2459
1751-
if strings.Contains(err.Error(), "fork/exec /usr/bin/docker: operation not permitted") {
1751+
var pathErr *fs.PathError
1752+
if errors.As(err, &pathErr) && pathErr.Op == "fork/exec" && pathErr.Path == "/usr/bin/docker" {
17521753
return result.WithError(err)
17531754
}
17541755
// report all other errors as error entries in the xUnit file

0 commit comments

Comments
 (0)