-
Notifications
You must be signed in to change notification settings - Fork 194
Allow CI case to exclude running on certain platforms #2001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1cacee6
ee1882e
31983c4
97c86d7
87a6865
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
""" | ||
|
||
import os | ||
import sys | ||
|
||
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter | ||
from pathlib import Path | ||
|
@@ -27,6 +28,7 @@ | |
import setup_expt | ||
import setup_xml | ||
|
||
from hosts import Host | ||
|
||
_here = os.path.dirname(__file__) | ||
_top = os.path.abspath(os.path.join(os.path.abspath(_here), '..')) | ||
|
@@ -75,6 +77,12 @@ def input_args(): | |
data.update(os.environ) | ||
testconf = parse_j2yaml(path=user_inputs.yaml, data=data) | ||
|
||
if 'exclude' in testconf: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yes completely agree! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let me make the changes in a push |
||
host = Host() | ||
if host.machine.lower() in [excluded_host.lower() for excluded_host in testconf.exclude]: | ||
logger.info(f'Skipping creation of case: {testconf.arguments.pslot} on {host.machine.capitalize()}') | ||
sys.exit(0) | ||
|
||
# Create a list of arguments to setup_expt.py | ||
setup_expt_args = [testconf.experiment.system, testconf.experiment.mode] | ||
for kk, vv in testconf.arguments.items(): | ||
|
Uh oh!
There was an error while loading. Please reload this page.