how to continue execution after sys.exit() command
<p>Here i'm reading and comparing values from the two logs using 'for' loop.Problem is i'm not able to continue to next TC after sys.exit command. Let me know if required more clarification</p>

<pre><code>f = open('/tmp/ftplog', 'r')
    for line in f:
        m = re.findall("5\d+", line)
        #print m
        fd = open('/tmp/tellog', 'r')
        for line in fd:
            n = re.findall(r"5\d+", line)
            #print n
            if  m == n:                 
             print "passed"

            sys.exit()  

####TC-02####

def tc02(ipadrr,login,password,ftpipaddr,ftplogin,ftppassword,ftpfilename):

    try:    

                telconn2 = pexpect.spawn(ipadrr)
</code></pre>
