git: 8a30ab5369f7 - main - atf_python: Set verbosity for commands in a vnet
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Oct 2023 19:31:39 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=8a30ab5369f71dfea3e82e6830bcb9aa99ee08dc commit 8a30ab5369f71dfea3e82e6830bcb9aa99ee08dc Author: Jose Luis Duran <jlduran@gmail.com> AuthorDate: 2023-10-12 16:15:04 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-10-13 19:31:30 +0000 atf_python: Set verbosity for commands in a vnet Reviewed by: markj MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/865 --- tests/atf_python/sys/net/vnet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/atf_python/sys/net/vnet.py b/tests/atf_python/sys/net/vnet.py index 7c855b19f2c0..b591501856b9 100644 --- a/tests/atf_python/sys/net/vnet.py +++ b/tests/atf_python/sys/net/vnet.py @@ -225,10 +225,10 @@ class VnetInstance(object): self.pipe = None self.subprocess = None - def run_vnet_cmd(self, cmd): + def run_vnet_cmd(self, cmd, verbose=True): if not self.attached: cmd = "/usr/sbin/jexec {} {}".format(self.name, cmd) - return run_cmd(cmd) + return run_cmd(cmd, verbose) def disable_dad(self): self.run_vnet_cmd("/sbin/sysctl net.inet6.ip6.dad_count=0")