summaryrefslogtreecommitdiff
path: root/libpod/stats_unsupported.go
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2020-08-26 11:39:51 -0600
committerEd Santiago <santiago@redhat.com>2020-08-27 12:58:13 -0600
commit4060b771577356c6966d9af6b92dc5c85c20b84a (patch)
treebbb8cfc7cfed534d11161a6f1455cf625faa68a4 /libpod/stats_unsupported.go
parent72c5b35ea5db44ca1c81a688d90f5c3aa8f8262e (diff)
downloadpodman-4060b771577356c6966d9af6b92dc5c85c20b84a.tar.gz
podman-4060b771577356c6966d9af6b92dc5c85c20b84a.tar.bz2
podman-4060b771577356c6966d9af6b92dc5c85c20b84a.zip
BATS: fix corner case in --userns=keep-id test
The test that does 'adduser' in a keep-id container had a really dumb bug: if the user running the test has UID 1000, then podman itself (via keep-id) will add the "1000" passwd entry, and the in-container "adduser" will allocate 1001, making our test fail. This triggered in f31/f32 podman gating tests, but (?!?) never in rawhide gating tests. Solution: explicitly feed a UID to adduser. Make sure that it's not the same as the UID of the current user. Also (unrelated): fix a ridiculous "run mkdir || die". At the time I wrote that I probably had no idea how BATS works. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'libpod/stats_unsupported.go')
0 files changed, 0 insertions, 0 deletions