python: Check draft version in hpackcheck.py

This commit is contained in:
Tatsuhiro Tsujikawa 2014-07-01 00:39:54 +09:00
parent 2f91a7f603
commit 499af94840
1 changed files with 7 additions and 0 deletions

View File

@ -50,4 +50,11 @@ if __name__ == '__main__':
sys.stderr.write('{}: '.format(filename)) sys.stderr.write('{}: '.format(filename))
with open(filename) as f: with open(filename) as f:
input = f.read() input = f.read()
testdata = json.loads(input)
if 'draft' not in testdata or testdata['draft'] != 8:
sys.stderr.write('Not supported\n')
continue
testsuite(json.loads(input)) testsuite(json.loads(input))