Skip to content

Commit ba05c2e

Browse files
committed
test: avoid infamy0 race in CI by using random container names
GitHub Actions sets $CI=true; treat it like -r so parallel jobs don't all try to claim "infamy0" and clobber each other.
1 parent efa665d commit ba05c2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ name()
122122
nm=infamy
123123
id=0
124124

125-
if [ -n "$random" ]; then
125+
if [ -n "$random" ] || [ -n "$CI" ]; then
126126
# Let podman/docker allocate random hostname and container name
127127
return
128128
fi

0 commit comments

Comments
 (0)