| #!/usr/bin/python2 |
| |
| import os |
| import unittest |
| import subprocess |
| |
| class test_permanent_face(unittest.TestCase): |
| """Test case for testing udp permanent face""" |
| |
| def setUp(self): |
| print "\nTesting UDP permanent face" |
| print "*****************************" |
| os.chdir("test_permanent_face") |
| os.system("mkdir -p logs") |
| |
| def tearDown(self): |
| print "********************************" |
| os.chdir("..") |
| |
| def test_permanent_face(self): |
| print ">>> test permanent face <<<" |
| |
| ret = subprocess.call(['./permanent-face-test.sh'], shell=True) |
| |
| if (ret != 0): |
| self.fail(" >> TEST PERMANENT FACE FAILED") |
| else: |
| print ">> TEST PERMANENT FACE PROCEDURE PASSED SUCCESSFULLY" |