vpp/test/sanity_run_vpp.py
juraj.linkes 185e6490ee Fix typo in sanity test description
Change-Id: Icd575b8ed62c340c57857ff6576f65557434f3e0
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
2018-12-11 12:55:41 +00:00

38 lines
765 B
Python

#!/usr/bin/env python
from __future__ import print_function
from multiprocessing import Pipe
from sys import exit
from hook import VppDiedError
from framework import VppTestCase, KeepAliveReporter
class SanityTestCase(VppTestCase):
""" Sanity test case - verify whether VPP is able to start """
pass
if __name__ == '__main__':
rc = 0
tc = SanityTestCase
x, y = Pipe()
reporter = KeepAliveReporter()
reporter.pipe = y
try:
tc.setUpClass()
except VppDiedError:
rc = -1
else:
try:
tc.tearDownClass()
except:
pass
x.close()
y.close()
if rc == 0:
print('Sanity test case passed\n')
else:
print('Sanity test case failed\n')
exit(rc)