test-api: reformat api files

Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
This commit is contained in:
Kamil Gierszewski
2024-08-09 10:52:00 +02:00
parent 077820f1c0
commit d40e2a519d
11 changed files with 962 additions and 837 deletions

View File

@@ -1,5 +1,6 @@
#
# Copyright(c) 2022 Intel Corporation
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -31,8 +32,8 @@ def check_progress_bar(command: str, progress_bar_expected: bool = True):
percentage = 0
while True:
output = stdout.channel.recv(1024).decode('utf-8')
search = re.search(r'\d+.\d+', output)
output = stdout.channel.recv(1024).decode("utf-8")
search = re.search(r"\d+.\d+", output)
last_percentage = percentage
if search:
TestRun.LOGGER.info(output)