We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5aa363 commit 1dae48dCopy full SHA for 1dae48d
test/user.bats
@@ -55,7 +55,10 @@ setup() {
55
@test "docker run --user=1001:1001 ${MICROMAMBA_IMAGE} whoami" {
56
# shellcheck disable=SC2086
57
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' ]
+ [ "$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' ]
62
}
63
64
@test "docker run --user=root ${MICROMAMBA_IMAGE} whoami" {
0 commit comments