Minor edits based on pyflakes

This commit is contained in:
ex0dus-0x 2019-06-10 18:04:00 -04:00
parent e5f4ec5e15
commit 70e4ce83d0
No known key found for this signature in database
GPG Key ID: DABAD5DB9BDD540E

View File

@ -53,7 +53,7 @@ class DeepStateFrontend(object):
raise RuntimeError(f"{compiler} does not exist as absolute path or in ${envvar}") raise RuntimeError(f"{compiler} does not exist as absolute path or in ${envvar}")
# use first compiler executable if multiple exists # 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 # in case name supplied as `bin/fuzzer`, strip executable name
@ -66,6 +66,13 @@ class DeepStateFrontend(object):
self.fuzzer = fuzzer_paths[0] 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): def compile(self, flags):
""" """
provides an interface for calling a compiler to instrument a test harness for 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] self.compile_cmd = [self.compiler, flags]
try: try:
r = subprocess.call(self.compile_cmd) subprocess.call(self.compile_cmd)
except BaseException as e: except BaseException as e:
raise RuntimeError(f"{self.compiler} interrupted due to exception:", e) raise RuntimeError(f"{self.compiler} interrupted due to exception:", e)