mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
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
This commit is contained in:
parent
2e620256bd
commit
7964a28ccf
|
@ -19,7 +19,8 @@
|
|||
|
||||
|
||||
def run_cmd(cmd: str, verbose=True) -> str:
|
||||
print("run: '{}'".format(cmd))
|
||||
if verbose:
|
||||
print("run: '{}'".format(cmd))
|
||||
return os.popen(cmd).read()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue