diff options
author | Loys Ollivier <lollivier@baylibre.com> | 2018-12-05 14:08:25 +0100 |
---|---|---|
committer | Loys Ollivier <lollivier@baylibre.com> | 2018-12-05 14:29:46 +0100 |
commit | 054523569896178e4939766bbd70b34472945441 (patch) | |
tree | c77ed2cc8567257b462658a4600e290f7b4c613c /utils/create-jobs.py | |
parent | bbf18387cdc9ab10f6b9f4f277bbd2790af30190 (diff) |
templates: callbacks: support multiple callback targets
LAVA jobs can now submit multiple callbacks per job.
Update the create-jobs tool and its underlying templates to support this
feature.
- Callback templates are now split in two file and follow LAVA specification:
'section' and 'subsection'.
- create-jobs tool supports multiple arguments for the '--callback-to' option.
- Default configuration for callback targets can now be a list of targets.
Change-Id: I36c502c0bb5b54010ce32a53ba78a6be5e6a1642
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
Diffstat (limited to 'utils/create-jobs.py')
-rwxr-xr-x | utils/create-jobs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/create-jobs.py b/utils/create-jobs.py index 384d935..10a26b6 100755 --- a/utils/create-jobs.py +++ b/utils/create-jobs.py @@ -30,7 +30,7 @@ def parse_cmdline(machines, tests, rfs_types): parser.add_argument('--callback-from', action='store', dest='callback_from', help='The LAVA lab (name) that will be responsible of doing the callback. ' 'Please read: ./templates/callback/callback_readme.txt') - parser.add_argument('--callback-to', action='store', dest='callback_to', + parser.add_argument('--callback-to', nargs='+', action='store', dest='callback_to', help='The KernelCI instance (name) that will receive the callback from LAVA. ' 'Please read: ./templates/callback/callback_readme.txt') parser.add_argument('--test', dest='tests', action='store', choices=tests + ['all'], |