XyloSiteMonitor

Check-in [af09294ed6]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Improve comments
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: af09294ed61406a06f4452f809deaa08678eb87c4ff0601d8eb3fe01cdb77d98
User & Date: xylon 2018-11-04 15:48:35
Context
2019-05-11
07:30
Add support for HTTP2 check-in: 15b687b191 user: xylon tags: trunk
2018-11-04
15:48
Improve comments check-in: af09294ed6 user: xylon tags: trunk
15:35
added a flag for email only on fail and a flag for giving the run a name (annotation) check-in: 7f4091db1d user: xylon tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to xylositemonitor.py.

3
4
5
6
7
8
9
10

11
12
13
14
15
16
17
import sys
import os
import re
from io import BytesIO
import argparse

import yaml
import pycurl


# Command line arguments.
parser = argparse.ArgumentParser(description='Tests websites.')
parser.add_argument('--sites-file', dest='sitesfile')
parser.add_argument('--mailto', dest='mailaddress')
parser.add_argument('--annotation', dest='annotation')
parser.add_argument('--email-only-on-fail', dest='emailonlyfail', action='store_true')







|
>







3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import sys
import os
import re
from io import BytesIO
import argparse

import yaml
import pycurl  # pycurl is annoyingly low-level but the easier
               # "requests" module does not allow forcing IP version

# Command line arguments.
parser = argparse.ArgumentParser(description='Tests websites.')
parser.add_argument('--sites-file', dest='sitesfile')
parser.add_argument('--mailto', dest='mailaddress')
parser.add_argument('--annotation', dest='annotation')
parser.add_argument('--email-only-on-fail', dest='emailonlyfail', action='store_true')