Skip to content

Commit

Permalink
less verbose logging for success
Browse files Browse the repository at this point in the history
  • Loading branch information
noursaidi committed Oct 24, 2024
1 parent 4aa1ed1 commit 25718f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion misc/discoverynode/testing/e2e/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,18 @@ def run(cmd: str) -> subprocess.CompletedProcess:
#
# stdout=sys.stdout, stderr=sys.stderr
info("executing: %s", cmd)
start = time.monotonic()
result = subprocess.run(
cmd,
shell=True,
stdout=subprocess.PIPE, #sys.stdout
stderr=subprocess.STDOUT, #sys.stderr
cwd=UDMI_DIR,
)
execution_time_seconds = time.monotonic() - start
info("completed with result code %s in %s seconds", str(result.returncode), str(execution_time_seconds))
# print not log, so they are captured when there is a failure
info(result.stdout.decode("utf-8"))
print(result.stdout.decode("utf-8"))
return result


Expand Down

0 comments on commit 25718f5

Please sign in to comment.