[5/6] CI: Fix getVars API on fast recalling

Message ID 20250221154843.515037-6-amikan@ilbers.de
State New
Headers show
Series Fix essentials rebuild and cover with CI | expand

Commit Message

Anton Mikanovich Feb. 21, 2025, 3:48 p.m. UTC
Running getVars several times in a row sometimes failing with
'Reconnecting to bitbake server' messages. Fix this by waiting a bit
before trying to check bitbake lock file state.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 testsuite/utils.py | 6 ++++++
 1 file changed, 6 insertions(+)

Patch

diff --git a/testsuite/utils.py b/testsuite/utils.py
index ffcb5cc7..e82f5a22 100755
--- a/testsuite/utils.py
+++ b/testsuite/utils.py
@@ -1,4 +1,9 @@ 
 #!/usr/bin/env python3
+#
+# This software is a part of ISAR.
+# Copyright (C) 2024-2025 ilbers GmbH
+#
+# SPDX-License-Identifier: MIT
 
 import os
 import sys
@@ -27,6 +32,7 @@  class CIUtils():
             fixStream(sys.stderr)
 
         # wait until previous bitbake will be finished
+        time.sleep(1)
         lockfile = os.path.join(os.getcwd(), 'bitbake.lock')
         checks = 0
         while os.path.exists(lockfile) and checks < 5: