From b96613f568c4695be162d7a531416b247f3d341d Mon Sep 17 00:00:00 2001 From: Shraddha Agrawal Date: Tue, 8 Sep 2020 21:11:44 +0530 Subject: [PATCH] dispatcher: make archive flag optional Signed-off-by: Shraddha Agrawal --- scripts/dispatcher.py | 2 +- teuthology/dispatcher/__init__.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/dispatcher.py b/scripts/dispatcher.py index 7c75f38b7c..669f125111 100644 --- a/scripts/dispatcher.py +++ b/scripts/dispatcher.py @@ -1,7 +1,7 @@ """ usage: teuthology-dispatcher --help teuthology-dispatcher --supervisor [-v] --bin-path BIN_PATH --job-config COFNFIG --archive-dir DIR - teuthology-dispatcher [-v] --archive-dir DIR --log-dir LOG_DIR --tube TUBE + teuthology-dispatcher [-v] [--archive-dir DIR] --log-dir LOG_DIR --tube TUBE Start a dispatcher for the specified tube. Grab jobs from a beanstalk queue and run the teuthology tests they describe as subprocesses. The diff --git a/teuthology/dispatcher/__init__.py b/teuthology/dispatcher/__init__.py index ccf2c1312c..0ea18521e4 100644 --- a/teuthology/dispatcher/__init__.py +++ b/teuthology/dispatcher/__init__.py @@ -64,6 +64,9 @@ def main(args): log_dir = args["--log-dir"] archive_dir = args["--archive-dir"] + if archive_dir is None: + archive_dir = teuth_config.archive_base + # setup logging for disoatcher in {log_dir} loglevel = logging.INFO if verbose: -- 2.39.5