Hila Ben Abraham | 9f8c118 | 2015-10-10 01:39:03 -0500 | [diff] [blame] | 1 | #!/usr/bin/python2 |
| 2 | |
| 3 | import os |
| 4 | import unittest |
| 5 | import subprocess |
| 6 | |
| 7 | class test_permanent_face(unittest.TestCase): |
| 8 | """Test case for testing udp permanent face""" |
| 9 | |
| 10 | def setUp(self): |
| 11 | print "\nTesting UDP permanent face" |
| 12 | print "*****************************" |
| 13 | os.chdir("test_permanent_face") |
| 14 | os.system("mkdir -p logs") |
| 15 | |
| 16 | def tearDown(self): |
| 17 | print "********************************" |
| 18 | os.chdir("..") |
| 19 | |
| 20 | def test_permanent_face(self): |
| 21 | print ">>> test permanent face <<<" |
| 22 | |
| 23 | ret = subprocess.call(['./permanent-face-test.sh'], shell=True) |
| 24 | |
| 25 | if (ret != 0): |
| 26 | self.fail(" >> TEST PERMANENT FACE FAILED") |
| 27 | else: |
| 28 | print ">> TEST PERMANENT FACE PROCEDURE PASSED SUCCESSFULLY" |