mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
test-runner: Fix verbose check for processes in namespaces
Check whether verbose output is enabled for process name arg[0] before prepending the "ip netns exec" part to arg since arg[0] is going to be "ip" after that.
This commit is contained in:
parent
5b7ec7689a
commit
c79f583e0c
@ -176,12 +176,12 @@ class Process(subprocess.Popen):
|
||||
global config
|
||||
self.ctx = config.ctx
|
||||
|
||||
if namespace:
|
||||
args = ['ip', 'netns', 'exec', namespace] + args
|
||||
|
||||
if self.ctx.is_verbose(args[0], log=False):
|
||||
self.verbose = True
|
||||
|
||||
if namespace:
|
||||
args = ['ip', 'netns', 'exec', namespace] + args
|
||||
|
||||
if outfile:
|
||||
self._append_outfile(outfile)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user