X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fsanity_run_vpp.py;h=b923c791b612fd94472061d0637b2f9adeebb744;hb=b23ffd7ef216463c35b75c831e6a27e58971f4ec;hp=f91dc833eeb26d01268ad557f7381b426e451e0f;hpb=e263685ac82454c39eee6e2a2146dd1e02d61de8;p=vpp.git diff --git a/test/sanity_run_vpp.py b/test/sanity_run_vpp.py index f91dc833eeb..b923c791b61 100644 --- a/test/sanity_run_vpp.py +++ b/test/sanity_run_vpp.py @@ -9,7 +9,7 @@ from framework import VppDiedError, VppTestCase, KeepAliveReporter class SanityTestCase(VppTestCase): """ Sanity test case - verify whether VPP is able to start """ - pass + cpus = [0] # don't ask to debug SanityTestCase @classmethod @@ -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())