Skip to content

Commit 1dae48d

Browse files
authored
Whoami error (#665)
* ci: update whoami error messages for ubuntu:25.10
1 parent d5aa363 commit 1dae48d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/user.bats

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ setup() {
5555
@test "docker run --user=1001:1001 ${MICROMAMBA_IMAGE} whoami" {
5656
# shellcheck disable=SC2086
5757
run docker run $RUN_FLAGS --user=1001:1001 "${MICROMAMBA_IMAGE}" whoami
58-
[ "$output" = 'whoami: cannot find name for user ID 1001' ] || [ "$output" = 'whoami: unknown uid 1001' ]
58+
[ "$output" = 'whoami: cannot find name for user ID 1001' ] \
59+
|| [ "$output" = 'whoami: unknown uid 1001' ] \
60+
|| [ "$output" = 'I have no name!' ] \
61+
|| [ "$output" = 'whoami: failed to get username: No such id: 1001' ]
5962
}
6063

6164
@test "docker run --user=root ${MICROMAMBA_IMAGE} whoami" {

0 commit comments

Comments
 (0)