]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use correct VM index for prints of unexpected messages
authorJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 11:09:15 +0000 (13:09 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 11:27:29 +0000 (13:27 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/vm/parallel-vm.py

index 1f571df203d389d8882e7300fd996e736e335955..89fad635b32d74b2ed828a9f943b0a953457cb9c 100755 (executable)
@@ -806,9 +806,9 @@ def main():
             if not known_output(tests, line):
                 unknown += line + "\n"
         if unknown:
-            print("\nVM %d - unexpected stdout output:\n%s" % (i, unknown))
+            print("\nVM %d - unexpected stdout output:\n%s" % (i + 1, unknown))
         if vm[i]['err']:
-            print("\nVM %d - unexpected stderr output:\n%s\n" % (i, vm[i]['err']))
+            print("\nVM %d - unexpected stderr output:\n%s\n" % (i + 1, vm[i]['err']))
 
     if codecov:
         print("Code coverage - preparing report")