Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
api: deprecate vl_msg_api_set_handlers
[vpp.git]
/
test
/
sanity_run_vpp.py
diff --git
a/test/sanity_run_vpp.py
b/test/sanity_run_vpp.py
index
5eb6885
..
5e2b3c1
100644
(file)
--- a/
test/sanity_run_vpp.py
+++ b/
test/sanity_run_vpp.py
@@
-8,8
+8,9
@@
from framework import VppDiedError, VppTestCase, KeepAliveReporter
class SanityTestCase(VppTestCase):
class SanityTestCase(VppTestCase):
- """ Sanity test case - verify whether VPP is able to start """
- pass
+ """Sanity test case - verify whether VPP is able to start"""
+
+ cpus = [0]
# don't ask to debug SanityTestCase
@classmethod
# don't ask to debug SanityTestCase
@classmethod
@@
-24,7
+25,7
@@
class SanityTestCase(VppTestCase):
pass
pass
-
if __name__ == '__main__'
:
+
def main()
:
rc = 0
tc = SanityTestCase
x, y = Pipe()
rc = 0
tc = SanityTestCase
x, y = Pipe()
@@
-43,8
+44,11
@@
if __name__ == '__main__':
y.close()
if rc == 0:
y.close()
if rc == 0:
- print(
'Sanity test case passed.\n'
)
+ print(
"Sanity test case passed."
)
else:
else:
- print('Sanity test case failed.\n')
+ print("Sanity test case failed.")
+ return rc
+
- sys.exit(rc)
+if __name__ == "__main__":
+ sys.exit(main())