From 7418cc1bfda75a2a2ec9b4009a9c833731fff7e3 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 14 Aug 2014 10:20:40 -0600 Subject: [PATCH] Perform some sanity checks on --name Signed-off-by: Zack Cerza --- teuthology/schedule.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/teuthology/schedule.py b/teuthology/schedule.py index 37bd287024..6028050509 100644 --- a/teuthology/schedule.py +++ b/teuthology/schedule.py @@ -14,6 +14,10 @@ def main(args): if args['--timeout']: raise ValueError( '--timeout is only applicable to the last job in a suite') + + name = args['--name'] + if not name or name.isdigit(): + raise ValueError("Please use a more descriptive value for --name") job_config = build_config(args) if args['--dry-run']: pprint.pprint(job_config) -- 2.39.5