From 499af94840f29e3e1046498faa232d28349d510f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 1 Jul 2014 00:39:54 +0900 Subject: [PATCH] python: Check draft version in hpackcheck.py --- python/hpackcheck.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/hpackcheck.py b/python/hpackcheck.py index 070f382c..00af0f6f 100755 --- a/python/hpackcheck.py +++ b/python/hpackcheck.py @@ -50,4 +50,11 @@ if __name__ == '__main__': sys.stderr.write('{}: '.format(filename)) with open(filename) as f: 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))