mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-05 22:43:15 +00:00
test.py: add --run-internet-dependent-tests
Later, we will add upgrade tests, which need to download the previous
release of Scylla from the internet.
Internet access is a major dependency, so we want to make those tests
opt-in for now.
(cherry picked from commit d3cb873532)
This commit is contained in:
committed by
Michał Chojnowski
parent
06d6718f3b
commit
1446b4e0ef
@@ -65,6 +65,8 @@ def pytest_addoption(parser):
|
||||
help='username for authentication')
|
||||
parser.addoption('--auth_password', action='store', default=None,
|
||||
help='password for authentication')
|
||||
parser.addoption('--skip-internet-dependent-tests', action='store_true',
|
||||
help='Skip tests which depend on artifacts from the internet')
|
||||
parser.addoption('--artifacts_dir_url', action='store', type=str, default=None, dest='artifacts_dir_url',
|
||||
help='Provide the URL to artifacts directory to generate the link to failed tests directory '
|
||||
'with logs')
|
||||
|
||||
@@ -48,6 +48,8 @@ class TopologyTest(PythonTest):
|
||||
async with get_cluster_manager(self.uname, self.suite.clusters, str(self.suite.log_dir)) as manager:
|
||||
self.args.insert(0, "--tmpdir={}".format(options.tmpdir))
|
||||
self.args.insert(0, "--manager-api={}".format(manager.sock_path))
|
||||
if options.skip_internet_dependent_tests:
|
||||
self.args.insert(0, "--skip-internet-dependent-tests")
|
||||
if options.artifacts_dir_url:
|
||||
self.args.insert(0, "--artifacts_dir_url={}".format(options.artifacts_dir_url))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user