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 """
- pass
+class SanityTestCase(VppAsfTestCase):
+ """Sanity test case - verify whether VPP is able to start"""
+
+ cpus = [0]
# don't ask to debug SanityTestCase
@classmethod
pass
-if __name__ == '__main__':
+def main():
rc = 0
tc = SanityTestCase
x, y = Pipe()
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())