summaryrefslogtreecommitdiffstats
path: root/test/sanity_run_vpp.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2019-11-05 11:18:25 +0000
committerOle Trøan <otroan@employees.org>2019-11-05 13:07:48 +0000
commit45a95dd782b91e9ae5665b5f95be4b6d7f99b879 (patch)
treed8cc55bae7efc046d70fdd09e8db0afd4636a958 /test/sanity_run_vpp.py
parent718a19b8f9aa3dca26aaf4eb6bd9f60eb6376d30 (diff)
tests: support setting random seed
Log the random seed used when running tests and provide means to re-use it in a later run. Type: feature Change-Id: I18d2a36ee802b901d4cca5577df41cec07f09cc0 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/sanity_run_vpp.py')
-rw-r--r--test/sanity_run_vpp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/sanity_run_vpp.py b/test/sanity_run_vpp.py
index 92f250b2a6b..2ee7d310a35 100644
--- a/test/sanity_run_vpp.py
+++ b/test/sanity_run_vpp.py
@@ -3,6 +3,7 @@
from __future__ import print_function
from multiprocessing import Pipe
from sys import exit
+import os
from framework import VppDiedError, VppTestCase, KeepAliveReporter
@@ -10,7 +11,9 @@ class SanityTestCase(VppTestCase):
""" Sanity test case - verify whether VPP is able to start """
pass
+
if __name__ == '__main__':
+ os.environ["RND_SEED"] = "1"
rc = 0
tc = SanityTestCase
x, y = Pipe()