Skip to content

Commit 4ee3edf

Browse files
committed
OpenBSD workflow: add fake host for reverse DNS lookup in test job
Signed-off-by: Laurent Cheylus <[email protected]>
1 parent e9ef086 commit 4ee3edf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/openbsd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ jobs:
147147
useradd -m -G wheel ${TEST_USER}
148148
chown -R ${TEST_USER}:wheel /root/ "${WORKSPACE_PARENT}"/
149149
whoami
150+
# Add fake host for reverse DNS lookup (needed for hostname test)
151+
printf "10.0.2.15\topenbsd.my.domain openbsd\n" >> /etc/hosts
150152
#
151153
# Further work needs to be done in a sudo as we are changing users
152154
sudo -i -u ${TEST_USER} sh << EOF

0 commit comments

Comments
 (0)