| |
@@ -86,6 +86,8 @@
|
| |
waiver_id = data['id']
|
| |
msg = 'subject type {0}, identifier {1} and testcase {2}'.format(
|
| |
data['subject_type'], data['subject_identifier'], data['testcase'])
|
| |
+ if data.get('scenario'):
|
| |
+ msg += f", scenario is {data['scenario']}"
|
| |
print_result(waiver_id, msg)
|
| |
|
| |
|
| |
@@ -122,6 +124,8 @@
|
| |
help='Specify a config file to use')
|
| |
@click.option('--result-id', '-r', multiple=True, type=int,
|
| |
help='Specify one or more results to be waived')
|
| |
+ @click.option('--scenario', '-S',
|
| |
+ help='Specify a scenario for a result to waive')
|
| |
@click.option('--subject', '-s', type=OldJSONSubject(),
|
| |
help=('Deprecated. Use --subject-identifier and --subject-type instead. '
|
| |
'Subject for a result to waive.'))
|
| |
@@ -139,7 +143,7 @@
|
| |
help='A comment explaining why the result is waived')
|
| |
@click.option('--username', '-u', default=None,
|
| |
help='Username on whose behalf the caller is proxying.')
|
| |
- def cli(username, comment, waived, product_version, testcase, subject, subject_identifier,
|
| |
+ def cli(username, comment, waived, product_version, testcase, scenario, subject, subject_identifier,
|
| |
subject_type, result_id, config_file):
|
| |
"""
|
| |
Creates new waiver against test results.
|
| |
@@ -151,7 +155,7 @@
|
| |
|
| |
\b
|
| |
waiverdb-cli -t dist.rpmdeplint -i qclib-1.3.1-3.fc28 -T koji_build \\
|
| |
- -p "fedora-28" -c "This is expected for non-x86 packages"
|
| |
+ -p "fedora-28" -S "somescenario" -c "This is expected for non-x86 packages"
|
| |
"""
|
| |
config = configparser.ConfigParser()
|
| |
|
| |
@@ -227,6 +231,8 @@
|
| |
'comment': comment,
|
| |
'username': username
|
| |
})
|
| |
+ if scenario:
|
| |
+ data_list[-1]['scenario'] = scenario
|
| |
|
| |
# XXX - TODO - remove this in a future release. (for backwards compat)
|
| |
for result_id in result_ids:
|
| |