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:
Jose Luis Duran 2023-10-12 14:51:45 +00:00 committed by Mark Johnston
parent 2e620256bd
commit 7964a28ccf

View file

@ -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()