Skip go generate check on older versions

This commit is contained in:
Dan Buch 2016-06-23 01:08:19 -04:00
parent 6185b8d8fd
commit d1081fb23f
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

View File

@ -70,6 +70,11 @@ def _toc():
def _gen():
go_version = check_output('go version'.split()).split()[2]
if go_version < 'go1.4':
print('runtests: skip on {}'.format(go_version), file=sys.stderr)
return
_run('go generate .')
_run('git diff --quiet')