diff options
author | Jose Luis Duran <jlduran@gmail.com> | 2023-10-12 14:51:45 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2023-10-13 19:31:30 +0000 |
commit | 7964a28ccfc9f1d353fa851f5ecd83d17ab75b09 (patch) | |
tree | d508c52bf76a02531ffae512e0cca478fda4b647 | |
parent | 2e620256bd76c449c835c604e404483437743011 (diff) | |
download | src-7964a28ccfc9f1d353fa851f5ecd83d17ab75b09.tar.gz src-7964a28ccfc9f1d353fa851f5ecd83d17ab75b09.zip |
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
-rw-r--r-- | tests/atf_python/sys/net/vnet.py | 3 |
1 files changed, 2 insertions, 1 deletions
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() |