-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial creation of run-ci-deploy entry point for POC (#10433)
* Initial implementation of run-ci-deploy entry point Signed-off-by: Coady LaCroix <[email protected]>
- Loading branch information
1 parent
4fa79a7
commit cac2ed8
Showing
5 changed files
with
349 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import sys | ||
|
||
import pytest | ||
|
||
from ocs_ci import framework | ||
from ocs_ci.utility.framework.initialization import faulthandler, init_ocsci_conf | ||
from ocs_ci.utility import utils | ||
|
||
|
||
def main(argv=None): | ||
faulthandler.enable() | ||
arguments = argv or sys.argv[1:] | ||
init_ocsci_conf(arguments) | ||
for i in range(framework.config.nclusters): | ||
framework.config.switch_ctx(i) | ||
pytest_logs_dir = utils.ocsci_log_path() | ||
utils.create_directory_path(framework.config.RUN["log_dir"]) | ||
arguments.extend( | ||
[ | ||
"-p", | ||
"ocs_ci.framework.pytest_customization.ocscilib", | ||
"-p", | ||
"ocs_ci.framework.pytest_customization.marks", | ||
"-p", | ||
"ocs_ci.framework.pytest_customization.reports", | ||
"--logger-logsdir", | ||
pytest_logs_dir, | ||
] | ||
) | ||
return pytest.main(arguments) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.