Explorar o código

Make filepath to output PCAP optional

This is necessary to make the tests run successfully again.
dustin.born %!s(int64=6) %!d(string=hai) anos
pai
achega
3ce59c8634
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      code/CLI.py
  2. 1 1
      code/Core/Controller.py

+ 1 - 1
code/CLI.py

@@ -144,7 +144,7 @@ class CLI(object):
         Evaluates given queries.
         """
         # Create Core Controller
-        controller = Controller(self.args.input, self.args.output, self.args.extraTests, self.args.non_verbose)
+        controller = Controller(self.args.input, self.args.extraTests, self.args.non_verbose, self.args.output)
 
         # Load PCAP statistics
         controller.load_pcap_statistics(self.args.export, self.args.recalculate, self.args.statistics)

+ 1 - 1
code/Core/Controller.py

@@ -13,7 +13,7 @@ import ID2TLib.Utility as Util
 
 
 class Controller:
-    def __init__(self, pcap_file_path: str, pcap_out_path: str, do_extra_tests: bool, non_verbose: bool):
+    def __init__(self, pcap_file_path: str, do_extra_tests: bool, non_verbose: bool, pcap_out_path: str=None):
         """
         Creates a new Controller, acting as a central coordinator for the whole application.