pybsddb with cffi

Check-in [9249afb249]
Login

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

Overview
Comment:Show db verion in report
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9249afb249a42cac25f2c35bbd997bb8cedf8ded
User & Date: Senyai 2013-05-11 15:59:16
Context
2013-05-20
17:27
Added DBPageNotFoundError exception for DB_PAGE_NOTFOUND Leaf check-in: 7d21048af6 user: broker-3 tags: trunk
2013-05-11
15:59
Show db verion in report check-in: 9249afb249 user: Senyai tags: trunk
2013-03-01
17:20
Raise TypeError as in original check-in: 49c72dfaa2 user: broker-3 tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test_report.py.

1

2
3
4
5
6
7
8
..
42
43
44
45
46
47
48
49
50

51
52
53
54
55
56
57
import subprocess



def run_command(command):
    p = subprocess.Popen(command,
                         stdout=subprocess.PIPE,
                         stderr=subprocess.STDOUT)
    return iter(p.stdout.readline, b'')
................................................................................
        tests = tests.strip()
        res = res.strip()
        print "RUN RESULT", (filename, tests, res)
        result.append((filename, tests, res))
    return result

def html(data):
    print "data", data
    html = [

        '<table border="0" cellpadding="5" cellspacing="1">',
        '<tr><th>Test</th><th colspan="2">Result</th></tr>',
    ]
    for filename, test, res in data:
        is_err = 'FAILED' in res or 'No output' in res
        tr = '<tr style="background:#fd8d8d">' if is_err else '<tr>'
        html.append(("\t" + tr +

>







 







<

>







1
2
3
4
5
6
7
8
9
..
43
44
45
46
47
48
49

50
51
52
53
54
55
56
57
58
import subprocess
import bsddb3


def run_command(command):
    p = subprocess.Popen(command,
                         stdout=subprocess.PIPE,
                         stderr=subprocess.STDOUT)
    return iter(p.stdout.readline, b'')
................................................................................
        tests = tests.strip()
        res = res.strip()
        print "RUN RESULT", (filename, tests, res)
        result.append((filename, tests, res))
    return result

def html(data):

    html = [
        '<h3>Berkeley DB ver. %d.%d.%d</h3>' % bsddb3.db.version(),
        '<table border="0" cellpadding="5" cellspacing="1">',
        '<tr><th>Test</th><th colspan="2">Result</th></tr>',
    ]
    for filename, test, res in data:
        is_err = 'FAILED' in res or 'No output' in res
        tr = '<tr style="background:#fd8d8d">' if is_err else '<tr>'
        html.append(("\t" + tr +