summaryrefslogtreecommitdiffstats
path: root/test/sanity_run_vpp.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sanity_run_vpp.py')
-rw-r--r--test/sanity_run_vpp.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/sanity_run_vpp.py b/test/sanity_run_vpp.py
index 4b21de12dfe..b923c791b61 100644
--- 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())