diff options
author | 2019-10-13 10:06:46 +0000 | |
---|---|---|
committer | 2019-10-27 10:04:47 +0000 | |
commit | e46f029003c126a901dfc5e1960984b9faf3ebc9 (patch) | |
tree | 586735de65fa368b0552a0e2954bae9c46a0b584 | |
parent | 5bf125be8fdfb7b552a8141d3010bd3fcd9189e8 (diff) |
tests: log error which happens during connect and wait longer for stats socket
Intermittently, a test would start VPP, but no testcases would execute.
This would be more probable apparent during the high load or if there
is another testcase dumping the core at that moment.
Adding the logging to the connection revealed it was the stats socket
connection erroring with error -2. Increasing the deadline
from 3 seconds to 5 minutes has eliminated this error.
Change-Id: I40bd7e642abb9e2aef0238c612e4c34781de5db2
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Type: test
(cherry picked from commit 4f05a8e408cba09057841d97cd5e7da3058836d1)
-rw-r--r-- | test/framework.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/framework.py b/test/framework.py index c049b1ae3bf..4cdbf3488f9 100644 --- a/test/framework.py +++ b/test/framework.py @@ -451,7 +451,7 @@ class VppTestCase(unittest.TestCase): @classmethod def wait_for_stats_socket(cls): - deadline = time.time() + 3 + deadline = time.time() + 300 ok = False while time.time() < deadline or \ cls.debug_gdb or cls.debug_gdbserver: @@ -570,7 +570,8 @@ class VppTestCase(unittest.TestCase): "VPP-API connection failed, did you forget " "to 'continue' VPP from within gdb?", RED)) raise - except Exception: + except Exception as e: + cls.logger.debug("Exception connecting to VPP: %s" % e) cls.quit() raise |