Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tests: support setting random seed
[vpp.git]
/
test
/
sanity_run_vpp.py
diff --git
a/test/sanity_run_vpp.py
b/test/sanity_run_vpp.py
index
92f250b
..
2ee7d31
100644
(file)
--- 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
from __future__ import print_function
from multiprocessing import Pipe
from sys import exit
+import os
from framework import VppDiedError, VppTestCase, KeepAliveReporter
from framework import VppDiedError, VppTestCase, KeepAliveReporter
@@
-10,7
+11,9
@@
class SanityTestCase(VppTestCase):
""" Sanity test case - verify whether VPP is able to start """
pass
""" Sanity test case - verify whether VPP is able to start """
pass
+
if __name__ == '__main__':
if __name__ == '__main__':
+ os.environ["RND_SEED"] = "1"
rc = 0
tc = SanityTestCase
x, y = Pipe()
rc = 0
tc = SanityTestCase
x, y = Pipe()