From 3bbf1b7c6fd44845d4354e1f09ddb6dc4b54c526 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Wed, 30 Jan 2019 16:04:58 -0800 Subject: [PATCH] Allow testing of specific filesets --- filebeat/tests/system/test_modules.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/filebeat/tests/system/test_modules.py b/filebeat/tests/system/test_modules.py index 0804d8ad28b1..a06e4dbe8f16 100644 --- a/filebeat/tests/system/test_modules.py +++ b/filebeat/tests/system/test_modules.py @@ -27,6 +27,8 @@ def load_fileset_test_cases(): else: modules = os.listdir(modules_dir) + filesets = os.getenv("TESTING_FILEBEAT_FILESETS") + test_cases = [] for module in modules: @@ -35,7 +37,12 @@ def load_fileset_test_cases(): if not os.path.isdir(path): continue - for fileset in os.listdir(path): + if filesets: + filesets = filesets.split(",") + else: + filesets = os.listdir(path) + + for fileset in filesets: if not os.path.isdir(os.path.join(path, fileset)): continue