diff --git a/e2e/actions/actions.go b/e2e/actions/actions.go index c218c10b48..bd46ca672e 100644 --- a/e2e/actions/actions.go +++ b/e2e/actions/actions.go @@ -340,7 +340,7 @@ func (c actionTests) actionExecMultiProfile(t *testing.T) { argv: []string{"--home", "/tmp", c.env.ImagePath, "cat", "/etc/passwd"}, exit: 0, wantOutputs: []e2e.SingularityCmdResultOp{ - e2e.ExpectOutput(e2e.RegexMatch, `^root:x:0:0:\w*:[^:]*:/bin/ash\n`), + e2e.ExpectOutput(e2e.RegexMatch, `^root:x:0:0:[^:]*:[^:]*:/bin/ash\n`), }, }, } diff --git a/e2e/actions/oci.go b/e2e/actions/oci.go index 1abcd83f27..c1351b641d 100644 --- a/e2e/actions/oci.go +++ b/e2e/actions/oci.go @@ -308,7 +308,7 @@ func (c actionTests) actionOciExec(t *testing.T) { argv: []string{"--home", "/tmp", imageRef, "cat", "/etc/passwd"}, exit: 0, wantOutputs: []e2e.SingularityCmdResultOp{ - e2e.ExpectOutput(e2e.RegexMatch, `^root:x:0:0:\w*:[^:]*:/bin/ash\n`), + e2e.ExpectOutput(e2e.RegexMatch, `^root:x:0:0:[^:]*:[^:]*:/bin/ash\n`), }, }, {