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: make tests less make dependent
[vpp.git]
/
test
/
sanity_run_vpp.py
diff --git
a/test/sanity_run_vpp.py
b/test/sanity_run_vpp.py
index
4b21de1
..
b923c79
100644
(file)
--- a/
test/sanity_run_vpp.py
+++ b/
test/sanity_run_vpp.py
@@
-24,7
+24,7
@@
class SanityTestCase(VppTestCase):
pass
-
if __name__ == '__main__'
:
+
def main()
:
rc = 0
tc = SanityTestCase
x, y = Pipe()
@@
-46,5
+46,8
@@
if __name__ == '__main__':
print('Sanity test case passed.')
else:
print('Sanity test case failed.')
+ return rc
+
- sys.exit(rc)
+if __name__ == '__main__':
+ sys.exit(main())