diff options
author | Will Woods <wwoods@redhat.com> | 2007-09-18 10:35:13 -0400 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2007-09-18 10:35:13 -0400 |
commit | b61a9e66d58bbb5fce3bb4493a4028df6fba9a18 (patch) | |
tree | 28ddffdc28e3517b1bae6a7c9ecd5793c97314eb | |
parent | 9935743296ff8eaad781b28ff8ae97c8204c1a77 (diff) | |
parent | a9031640bb23d32c0eeeada94aa4945def6bed90 (diff) | |
download | python-bugzilla-b61a9e66d58bbb5fce3bb4493a4028df6fba9a18.tar.gz python-bugzilla-b61a9e66d58bbb5fce3bb4493a4028df6fba9a18.tar.xz python-bugzilla-b61a9e66d58bbb5fce3bb4493a4028df6fba9a18.zip |
Merge branch 'master' of ssh://wwoods.fedorapeople.org/~/public_html/python-bugzilla
-rwxr-xr-x | selftest.py | 10 |
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." |