Ci Network Test: Make DNS timeout configurable, add loss tolerance
Revert the per-lookup DNS timeout back to a 2s default and expose it
via --dns-timeout/--dt, independent of the overall --timeout. A
single 2s hang no longer needs a blanket 30s timeout to be tolerated.
Add --max-losses/--ml to retry a lookup that times out (presumed
dropped UDP packet) up to n times before counting it as an error.
Real server errors (ServerFailureError/ServerRefusedError) are never
retried.
Allow command line arguments to be supplied via the
CI_NETWORK_TESTARGS environment variable, which overrides any
arguments passed on the command line when set and non-empty. The
override is logged.
Update README accordingly.
Change-Id: I34a64503c96d9d64c323843fdb0556b764860e7d
Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io>
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>