From 984e12ab48cdb5d81d0e994e1e0baca9cc3037a1 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 14 Jul 2020 16:17:10 -0700 Subject: [PATCH] [lldb/Test] Create reproducer dir if necessary Create the reproducer directory under the build root if it doesn't exists. The reproducer will only create the top level directory. --- lldb/test/API/lit.cfg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/test/API/lit.cfg.py b/lldb/test/API/lit.cfg.py index 57e7509..a211abe 100644 --- a/lldb/test/API/lit.cfg.py +++ b/lldb/test/API/lit.cfg.py @@ -124,6 +124,7 @@ if 'LLDB_CAPTURE_REPRODUCER' in os.environ: lldb_repro_mode = lit_config.params.get('lldb-run-with-repro', None) if lldb_repro_mode: lit_config.note("Running API tests in {} mode.".format(lldb_repro_mode)) + mkdir_p(config.lldb_reproducer_directory) if lldb_repro_mode == 'capture': config.available_features.add('lldb-repro-capture') elif lldb_repro_mode == 'replay': -- 2.7.4