summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-25 14:03:23 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-25 14:03:23 +0000
commitda585563d52db468cd939d664b522d03b35a9bb3 (patch)
tree4f1cca93c0072bc720376312a3fd2e3e5ad0eaf5 /test
parenta8f8119236d69fabeb224aa3f3f2817ff942943f (diff)
downloadzabbix-da585563d52db468cd939d664b522d03b35a9bb3.tar.gz
zabbix-da585563d52db468cd939d664b522d03b35a9bb3.tar.xz
zabbix-da585563d52db468cd939d664b522d03b35a9bb3.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2366 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'test')
-rwxr-xr-xtest/regression/gui.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/regression/gui.py b/test/regression/gui.py
index 703e0d19..a4e4ab9c 100755
--- a/test/regression/gui.py
+++ b/test/regression/gui.py
@@ -33,10 +33,10 @@ def TestGUI(name, page, gets, expect):
data = r1.read()
p = re.compile('.*'+expect+'.*', re.DOTALL)
m = p.match(data)
- if m:
- print '\tGUI: OK'
- else:
+ if not m:
print '\tGUI: NOT OK'
+### else:
+### print '\tGUI: OK'
conn.close()
def InitDB():
@@ -56,10 +56,10 @@ def TestDBCount(table, condition, num):
# print sql
row = cursor.fetchone()
- if row[0]==num:
- print '\tDB: OK'
- else:
+ if row[0]!=num:
print '\tDB: NOT OK'
+### else:
+### print '\tDB: OK'
def DBGetID(table, condition, column):
cursor = connection.cursor()