From febfb972fad5bc8b33f06ae8a0c563532cbfb45d Mon Sep 17 00:00:00 2001 From: "xu.jimmy.wrk" Date: Tue, 26 Oct 2010 13:40:43 +0000 Subject: [PATCH] minor --- checkRules.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/checkRules.py b/checkRules.py index 9431daf..1aa61b2 100755 --- a/checkRules.py +++ b/checkRules.py @@ -79,6 +79,8 @@ def main(): curl = subprocess.call(['/usr/bin/curl', '-4', '-I', '-m', '5', test], stdout=subprocess.PIPE, stderr=subprocess.PIPE) if (t==IP and curl==28) or (t==TLS and curl==35) or (t==URL and curl==56): print '=>', curl + elif t==IP and curl==56: + print '=>', '\033[31mexpecting %d, got %d\033[0m' % (expect[t], curl) else: print '=>', '\033[1;31mexpecting %d, got %d\033[0m' % (expect[t], curl) ferr.write(str(line) + ': "' + rule + '", expecting %d, got %d' % (expect[t], curl) + '\n')