X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fsanity_run_vpp.py;h=5e2b3c1f92becc8cf2b4874ab0129231442b9df9;hb=refs%2Fchanges%2F48%2F39248%2F2;hp=5eb68853b1f6fe142c12dda22902d85804a43862;hpb=c701e5718201fbfb205998343da70c816c57795f;p=vpp.git diff --git a/test/sanity_run_vpp.py b/test/sanity_run_vpp.py index 5eb68853b1f..5e2b3c1f92b 100644 --- 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): - """ 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 @@ -24,7 +25,7 @@ class SanityTestCase(VppTestCase): pass -if __name__ == '__main__': +def main(): rc = 0 tc = SanityTestCase x, y = Pipe() @@ -43,8 +44,11 @@ if __name__ == '__main__': y.close() if rc == 0: - print('Sanity test case passed.\n') + print("Sanity test case passed.") else: - print('Sanity test case failed.\n') + print("Sanity test case failed.") + return rc + - sys.exit(rc) +if __name__ == "__main__": + sys.exit(main())