diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-08-19 21:11:04 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-08-19 23:17:53 +0200 |
commit | 3dfdc40bf58e17b33e384f5f73d110953d659285 (patch) | |
tree | cd662e37b8194f1c44936f2169b623a02cf5aaec /bin | |
parent | b270ab452a63fb798dbf2f9b30800593949d82b9 (diff) | |
download | jenkins.debian.net-3dfdc40bf58e17b33e384f5f73d110953d659285.tar.xz |
reproducible: remote_scheduler: don't require the -s option at argparse level, bug check it later on (this allow passing just --null via argv)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_remote_scheduler.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py index d2de98ba..7faab162 100755 --- a/bin/reproducible_remote_scheduler.py +++ b/bin/reproducible_remote_scheduler.py @@ -51,7 +51,7 @@ parser.add_argument('-b', '--before', required=False, parser.add_argument('-a', '--architecture', required=False, default='amd64', help='Specify the architecture to schedule for ' + '(defaults to amd64)') -parser.add_argument('-s', '--suite', required=True, +parser.add_argument('-s', '--suite', required=False, help='Specify the suite to schedule in') parser.add_argument('packages', metavar='package', nargs='*', help='list of packages to reschedule') @@ -105,6 +105,10 @@ log.debug('Suite: ' + suite) log.debug('Architecture: ' + arch) log.debug('Packages: ' + ' '.join(packages)) +if not suite: + log.critical('You need to specify the suite name') + sys.exit(1) + if suite not in SUITES: log.critical('The specified suite is not being tested.') log.critical('Please choose between ' + ', '.join(SUITES)) |