mushorg / conpot

ICS/SCADA honeypot
GNU General Public License v2.0
1.23k stars 415 forks source link

Fix test_docs being sensitive to current working directory #489

Closed srenfo closed 4 years ago

srenfo commented 4 years ago

test_make_docs would invoke make with the relative paths from whichever was the current working directory as the tests were being run. This PR explicitly sets cwd. It really just adds one line and an import. The rest are whitespace changes and import sorting.

This way you can invoke this test individually, e.g. from an IDE, without manually setting the working directory.

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 1185


Files with Coverage Reduction New Missed Lines %
conpot/protocols/http/web_server.py 3 85.71%
conpot/protocols/ipmi/ipmi_server.py 6 67.35%
conpot/protocols/enip/enip_server.py 7 63.87%
conpot/protocols/ftp/ftp_handler.py 7 83.1%
conpot/protocols/ftp/ftp_base_handler.py 11 83.79%
conpot/protocols/http/command_responder.py 64 54.53%
<!-- Total: 98 -->
Totals Coverage Status
Change from base Build 1181: -0.4%
Covered Lines: 5513
Relevant Lines: 7579

💛 - Coveralls