add 'gradleprops' to .pickle files for the metadata tests

This commit is contained in:
Hans-Christoph Steiner 2015-09-01 11:52:56 +02:00
parent 8d6e0aebb9
commit beb217b6ae
5 changed files with 5236 additions and 5005 deletions

15
tests/metadata/update-pickle.py Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env python2
#
# This script is for updating the .pickle test files when there are changes to
# the default metadata, e.g. adding a new key/tag.
import glob
import pickle
for picklefile in glob.glob('*.pickle'):
p = pickle.load(open(picklefile))
for build in p['builds']:
build['gradleprops'] = []
pickle.dump(p, open(picklefile, 'w'))