mirror of
https://github.com/containers/podman.git
synced 2025-10-20 20:54:45 +08:00
Merge pull request #7439 from edsantiago/fix_failing_userns_test
run test: use explicit uid/gid
This commit is contained in:
@ -286,10 +286,10 @@ echo $rand | 0 | $rand
|
|||||||
cid="$output"
|
cid="$output"
|
||||||
|
|
||||||
gecos="$(random_string 6) $(random_string 8)"
|
gecos="$(random_string 6) $(random_string 8)"
|
||||||
run_podman exec --user root $cid adduser -D -g "$gecos" -s /bin/sh newuser3
|
run_podman exec --user root $cid adduser -u 4242 -G ping -D -g "$gecos" -s /bin/sh newuser3
|
||||||
is "$output" "" "output from adduser"
|
is "$output" "" "output from adduser"
|
||||||
run_podman exec $cid tail -1 /etc/passwd
|
run_podman exec $cid tail -1 /etc/passwd
|
||||||
is "$output" "newuser3:x:1000:1000:$gecos:/home/newuser3:/bin/sh" \
|
is "$output" "newuser3:x:4242:999:$gecos:/home/newuser3:/bin/sh" \
|
||||||
"newuser3 added to /etc/passwd in container"
|
"newuser3 added to /etc/passwd in container"
|
||||||
|
|
||||||
run_podman exec $cid touch /stop
|
run_podman exec $cid touch /stop
|
||||||
|
Reference in New Issue
Block a user