python: Output seqno in hpackmake.py, utilize it in hpackcheck.py
This commit is contained in:
parent
5aa0a0d099
commit
efd90c349d
|
@ -30,7 +30,12 @@ def testsuite(testdata):
|
||||||
hdrs.sort()
|
hdrs.sort()
|
||||||
expected_hdrs.sort()
|
expected_hdrs.sort()
|
||||||
if hdrs != expected_hdrs:
|
if hdrs != expected_hdrs:
|
||||||
sys.stderr.write('FAIL case#{}\n'.format(casenum + 1))
|
if 'seqno' in item:
|
||||||
|
seqno = item['seqno']
|
||||||
|
else:
|
||||||
|
seqno = casenum
|
||||||
|
|
||||||
|
sys.stderr.write('FAIL seqno#{}\n'.format(seqno))
|
||||||
sys.stderr.write('expected:\n')
|
sys.stderr.write('expected:\n')
|
||||||
for k, v in expected_hdrs:
|
for k, v in expected_hdrs:
|
||||||
sys.stderr.write('{}: {}\n'.format(k, v))
|
sys.stderr.write('{}: {}\n'.format(k, v))
|
||||||
|
|
|
@ -28,6 +28,7 @@ result in less bits on the wire.'''
|
||||||
deflater.change_table_size(table_size)
|
deflater.change_table_size(table_size)
|
||||||
for casenum, item in enumerate(testdata['cases']):
|
for casenum, item in enumerate(testdata['cases']):
|
||||||
outitem = {
|
outitem = {
|
||||||
|
'seqno': casenum,
|
||||||
'headers': item['headers']
|
'headers': item['headers']
|
||||||
}
|
}
|
||||||
casenum += 1
|
casenum += 1
|
||||||
|
|
Loading…
Reference in New Issue