summaryrefslogtreecommitdiffstats
path: root/selftest.py
diff options
context:
space:
mode:
authorWill Woods <wwoods@wills-mini.localdomain>2007-09-18 10:06:11 -0400
committerWill Woods <wwoods@wills-mini.localdomain>2007-09-18 10:06:11 -0400
commita9031640bb23d32c0eeeada94aa4945def6bed90 (patch)
tree1b450809e6ad79059cf04af53af6e77a31f3b14a /selftest.py
parent1f274b0465cc37ab07cfcd10948976965edf05c4 (diff)
downloadpython-bugzilla-a9031640bb23d32c0eeeada94aa4945def6bed90.tar.gz
python-bugzilla-a9031640bb23d32c0eeeada94aa4945def6bed90.tar.xz
python-bugzilla-a9031640bb23d32c0eeeada94aa4945def6bed90.zip
fix cookieglob, handle keyboard interrupt, default to beta site
Diffstat (limited to 'selftest.py')
-rwxr-xr-xselftest.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/selftest.py b/selftest.py
index e6341e1..30f212d 100755
--- a/selftest.py
+++ b/selftest.py
@@ -12,16 +12,17 @@
from bugzilla import Bugzilla
import os, glob, sys
+import xmlrpclib
def find_firefox_cookiefile():
- cookieglob = os.path.expanduser('~/.mozilla/firefox/default.*/cookies.txt')
+ cookieglob = os.path.expanduser('~/.mozilla/firefox/*default*/cookies.txt')
cookiefiles = glob.glob(cookieglob)
if cookiefiles:
# TODO return whichever is newest
return cookiefiles[0]
def selftest(user='',password=''):
- url = 'https://bugzilla.redhat.com/xmlrpc.cgi'
+ url = 'https://partner-bugzilla.redhat.com/xmlrpc.cgi'
public_bug = 1
private_bug = 250666
bugidlist = (1,2,3,1337,123456)
@@ -87,4 +88,7 @@ if __name__ == '__main__':
password = ''
if len(sys.argv) > 2:
(user,password) = sys.argv[1:3]
- selftest(user,password)
+ try:
+ selftest(user,password)
+ except KeyboardInterrupt:
+ print "Exiting on keyboard interrupt."