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 15:31:30 -0400 |
| commit | 7964a28ccfc9f1d353fa851f5ecd83d17ab75b09 (patch) | |
| tree | d508c52bf76a02531ffae512e0cca478fda4b647 /tests/atf_python | |
| parent | 2e620256bd76c449c835c604e404483437743011 (diff) | |
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
Diffstat (limited to 'tests/atf_python')
| -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() |
