Tests: added command line arguments parsing in tests.

Added the following command line arguments:

  -d, --detailed: Show detailed output for tests

    Usage examples:

    ./test/run.py --detailed
    python3 test/test_access_log.py --detailed
    python3 test/test_access_log.py -d TestUnitAccessLog.test_access_log_ipv6


  -l, --log: Save unit.log after the test execution

    Usage examples:

    ./test/run.py -l
    python3 test/test_access_log.py -l
    python3 test/test_access_log.py --log TestUnitAccessLog.test_access_log_ipv6
This commit is contained in:
Andrey Zelenkov
2018-11-15 21:26:15 +03:00
parent c1fd6cb589
commit eff760bd2b
15 changed files with 55 additions and 17 deletions

View File

@@ -218,4 +218,4 @@ class TestUnitConfiguration(unit.TestUnitControl):
}), 'no port')
if __name__ == '__main__':
unittest.main()
TestUnitConfiguration.main()