Skip to content

Commit c45b6df

Browse files
authored
Merge pull request #3717 from dtrudg/issue-3715
e2e: fix: accommodate "Super User" in e2e CustomHomePreservesRootShell
2 parents 08da20f + 4358ff0 commit c45b6df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

e2e/actions/actions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ func (c actionTests) actionExecMultiProfile(t *testing.T) {
340340
argv: []string{"--home", "/tmp", c.env.ImagePath, "cat", "/etc/passwd"},
341341
exit: 0,
342342
wantOutputs: []e2e.SingularityCmdResultOp{
343-
e2e.ExpectOutput(e2e.RegexMatch, `^root:x:0:0:\w*:[^:]*:/bin/ash\n`),
343+
e2e.ExpectOutput(e2e.RegexMatch, `^root:x:0:0:[^:]*:[^:]*:/bin/ash\n`),
344344
},
345345
},
346346
}

e2e/actions/oci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func (c actionTests) actionOciExec(t *testing.T) {
308308
argv: []string{"--home", "/tmp", imageRef, "cat", "/etc/passwd"},
309309
exit: 0,
310310
wantOutputs: []e2e.SingularityCmdResultOp{
311-
e2e.ExpectOutput(e2e.RegexMatch, `^root:x:0:0:\w*:[^:]*:/bin/ash\n`),
311+
e2e.ExpectOutput(e2e.RegexMatch, `^root:x:0:0:[^:]*:[^:]*:/bin/ash\n`),
312312
},
313313
},
314314
{

0 commit comments

Comments
 (0)