diff options
Diffstat (limited to 'test/sanity_run_vpp.py')
-rw-r--r-- | test/sanity_run_vpp.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/test/sanity_run_vpp.py b/test/sanity_run_vpp.py index 4b21de12dfe..47431021db5 100644 --- a/test/sanity_run_vpp.py +++ b/test/sanity_run_vpp.py @@ -3,12 +3,12 @@ from __future__ import print_function from multiprocessing import Pipe import sys -import os -from framework import VppDiedError, VppTestCase, KeepAliveReporter +from asfframework import VppDiedError, VppAsfTestCase, KeepAliveReporter -class SanityTestCase(VppTestCase): - """ Sanity test case - verify whether VPP is able to start """ +class SanityTestCase(VppAsfTestCase): + """Sanity test case - verify whether VPP is able to start""" + cpus = [0] # don't ask to debug SanityTestCase @@ -24,7 +24,7 @@ class SanityTestCase(VppTestCase): pass -if __name__ == '__main__': +def main(): rc = 0 tc = SanityTestCase x, y = Pipe() @@ -43,8 +43,11 @@ if __name__ == '__main__': y.close() if rc == 0: - print('Sanity test case passed.') + print("Sanity test case passed.") else: - print('Sanity test case failed.') + print("Sanity test case failed.") + return rc + - sys.exit(rc) +if __name__ == "__main__": + sys.exit(main()) |