blob: 430c9850d9e060381d46acb8045caceaa3b579da [file] [log] [blame]
Hila Ben Abraham9f8c1182015-10-10 01:39:03 -05001#!/usr/bin/python2
2
3import os
4import unittest
5import subprocess
6
7class 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"