Skip to content

Commit

Permalink
Allow testing of specific filesets
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Jan 31, 2019
1 parent 58753e7 commit 3bbf1b7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion filebeat/tests/system/test_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down

0 comments on commit 3bbf1b7

Please sign in to comment.