Skip to content
This repository was archived by the owner on Jul 8, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions measure
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ class Exec(Measure):
# Start subprocess, executing os.setsid to create a new process group
p = subprocess.Popen(
args,
shell=shell,
# nosec included below to disable bandit warning as shell execution is part of driver functionality
shell=shell, # nosec B602
stdin=None,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
Expand Down Expand Up @@ -416,7 +417,7 @@ class Exec(Measure):
"""
try:
self.run_taskset(self.cfg["post"], ignore_errors=True)
except:
except: # nosec
# We ignore any errors from 'post' phase during cleanup
pass
self.stop_running_async_processes()
Expand Down