Skip to content

Commit

Permalink
Code review: 340750043: Fixed yara option parsing log2timeline#1702
Browse files Browse the repository at this point in the history
  • Loading branch information
Onager committed Mar 6, 2018
1 parent faa6128 commit 79dc824
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/dpkg/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ plaso (20180306-1) unstable; urgency=low

* Auto-generated

-- Log2Timeline <log2timeline-dev@googlegroups.com> Tue, 06 Mar 2018 12:12:00 +0100
-- Log2Timeline <log2timeline-dev@googlegroups.com> Tue, 06 Mar 2018 12:18:10 +0100
2 changes: 1 addition & 1 deletion plaso/cli/log2timeline_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def ParseOptions(self, options):

argument_helper_names = [
'artifact_definitions', 'extraction', 'filter_file', 'status_view',
'storage_file', 'storage_format', 'text_prepend']
'storage_file', 'storage_format', 'text_prepend', 'yara_rules']
helpers_manager.ArgumentHelperManager.ParseOptions(
options, self, names=argument_helper_names)

Expand Down
3 changes: 3 additions & 0 deletions tests/cli/log2timeline_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,12 @@ def testParseOptions(self):
options.source = self._GetTestFilePath(['testdir'])
options.storage_file = 'storage.plaso'
options.storage_format = definitions.STORAGE_FORMAT_SQLITE
options.yara_rules_path = self._GetTestFilePath(['yara.rules'])

test_tool.ParseOptions(options)

self.assertIsNotNone(test_tool._yara_rules_string)

options = test_lib.TestOptions()
options.artifact_definitions_path = self._GetTestFilePath(['artifacts'])

Expand Down

0 comments on commit 79dc824

Please sign in to comment.