Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vlib: fix handoff queue sequencing bug
[vpp.git]
/
test
/
sanity_run_vpp.py
diff --git
a/test/sanity_run_vpp.py
b/test/sanity_run_vpp.py
index
012b16d
..
535d054
100644
(file)
--- a/
test/sanity_run_vpp.py
+++ b/
test/sanity_run_vpp.py
@@
-1,17
+1,19
@@
-#!/usr/bin/env python
+#!/usr/bin/env python
3
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
-from hook import VppDiedError
-from framework import VppTestCase, KeepAliveReporter
+import os
+from framework import Vpp
DiedError, Vpp
TestCase, KeepAliveReporter
class SanityTestCase(VppTestCase):
class SanityTestCase(VppTestCase):
- """ Sanity test case - verify
if
VPP is able to start """
+ """ Sanity test case - verify
whether
VPP is able to start """
pass
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()
@@
-29,4
+31,9
@@
if __name__ == '__main__':
x.close()
y.close()
x.close()
y.close()
+ if rc == 0:
+ print('Sanity test case passed\n')
+ else:
+ print('Sanity test case failed\n')
+
exit(rc)
exit(rc)