Merge "Collect gitea sshd logs"

This commit is contained in:
Zuul 2019-08-08 18:12:49 +00:00 committed by Gerrit Code Review
commit a5378dfd1b
2 changed files with 5 additions and 1 deletions

View File

@ -113,4 +113,4 @@ COPY sshd-entrypoint.sh /usr/bin/entrypoint
EXPOSE 22
VOLUME ["/data"]
ENTRYPOINT ["/usr/bin/entrypoint"]
CMD ["/usr/sbin/sshd", "-D"]
CMD ["/usr/sbin/sshd", "-D", "-e"]

View File

@ -29,3 +29,7 @@ def test_ulimit(host):
expected = ("STACK max stack size "
"16777216 9223372036854775807 bytes")
assert expected in cmd.stdout.split('\n')
def test_sshd_logs(host):
cmd = host.run("docker logs giteadocker_gitea-ssh_1")
assert cmd.stdout != '' or cmd.stderr != ''