From 70e4ce83d06206549fa3b3f4f7392fd337e57f63 Mon Sep 17 00:00:00 2001 From: ex0dus-0x Date: Mon, 10 Jun 2019 18:04:00 -0400 Subject: [PATCH] Minor edits based on pyflakes --- bin/deepstate/frontend.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/deepstate/frontend.py b/bin/deepstate/frontend.py index 49bbad2..e89014d 100644 --- a/bin/deepstate/frontend.py +++ b/bin/deepstate/frontend.py @@ -53,7 +53,7 @@ class DeepStateFrontend(object): raise RuntimeError(f"{compiler} does not exist as absolute path or in ${envvar}") # use first compiler executable if multiple exists - self.compiler = compiler_path[0] + self.compiler = compiler_paths[0] # in case name supplied as `bin/fuzzer`, strip executable name @@ -66,6 +66,13 @@ class DeepStateFrontend(object): self.fuzzer = fuzzer_paths[0] + def print_help(self): + """ + calls fuzzer to print executable help menu + """ + subprocess.call([self.fuzzer, "--help"]) + + def compile(self, flags): """ provides an interface for calling a compiler to instrument a test harness for @@ -76,7 +83,7 @@ class DeepStateFrontend(object): self.compile_cmd = [self.compiler, flags] try: - r = subprocess.call(self.compile_cmd) + subprocess.call(self.compile_cmd) except BaseException as e: raise RuntimeError(f"{self.compiler} interrupted due to exception:", e)