git: 7964a28ccfc9 - main - atf_python: Actually implement verbosity for run_cmd
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Oct 2023 19:31:37 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=7964a28ccfc9f1d353fa851f5ecd83d17ab75b09 commit 7964a28ccfc9f1d353fa851f5ecd83d17ab75b09 Author: Jose Luis Duran <jlduran@gmail.com> AuthorDate: 2023-10-12 14:51:45 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-10-13 19:31:30 +0000 atf_python: Actually implement verbosity for run_cmd Reviewed by: markj MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/865 --- tests/atf_python/sys/net/vnet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/atf_python/sys/net/vnet.py b/tests/atf_python/sys/net/vnet.py index c58ae28d5ca9..bfe7984b440b 100644 --- a/tests/atf_python/sys/net/vnet.py +++ b/tests/atf_python/sys/net/vnet.py @@ -19,7 +19,8 @@ from atf_python.utils import libc def run_cmd(cmd: str, verbose=True) -> str: - print("run: '{}'".format(cmd)) + if verbose: + print("run: '{}'".format(cmd)) return os.popen(cmd).read()