Skip to content

Commit aeb6109

Browse files
committed
Rename switch to --build-data
1 parent 035ddfb commit aeb6109

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tools/make.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@
5555
from tools.toolchains import mbedToolchain, TOOLCHAIN_CLASSES, TOOLCHAIN_PATHS
5656
from tools.settings import CLI_COLOR_MAP
5757

58-
def merge_metadata(filename, toolchain_report):
58+
def merge_build_data(filename, toolchain_report):
5959
try:
60-
metadata = load(open(filename))
60+
build_data = load(open(filename))
6161
except (IOError, ValueError):
62-
metadata = {'builds': []}
62+
build_data = {'builds': []}
6363
for tgt in toolchain_report.values():
6464
for tc in tgt.values():
6565
for project in tc.values():
6666
for build in project:
67-
metadata['builds'].append(build[0])
68-
dump(metadata, open(filename, "wb"), indent=4, separators=(',', ': '))
67+
build_data['builds'].append(build[0])
68+
dump(build_data, open(filename, "wb"), indent=4, separators=(',', ': '))
6969

7070
if __name__ == '__main__':
7171
# Parse Options
@@ -190,10 +190,10 @@ def merge_metadata(filename, toolchain_report):
190190
default=False,
191191
help="Link with mbed test library")
192192

193-
parser.add_argument("--metadata",
194-
dest="metadata",
193+
parser.add_argument("--build-data",
194+
dest="build_data",
195195
default=None,
196-
help="Dump metadata to this file")
196+
help="Dump build_data to this file")
197197

198198
# Specify a different linker script
199199
parser.add_argument("-l", "--linker", dest="linker_script",
@@ -267,7 +267,7 @@ def merge_metadata(filename, toolchain_report):
267267
%(toolchain,search_path))
268268

269269
# Test
270-
metadata_blob = {} if options.metadata else None
270+
build_data_blob = {} if options.build_data else None
271271
for test_no in p:
272272
test = Test(test_no)
273273
if options.automated is not None: test.automated = options.automated
@@ -306,7 +306,7 @@ def merge_metadata(filename, toolchain_report):
306306
clean=options.clean,
307307
verbose=options.verbose,
308308
notify=notify,
309-
report=metadata_blob,
309+
report=build_data_blob,
310310
silent=options.silent,
311311
macros=options.macros,
312312
jobs=options.jobs,
@@ -362,5 +362,5 @@ def merge_metadata(filename, toolchain_report):
362362
print "[ERROR] %s" % str(e)
363363

364364
sys.exit(1)
365-
if options.metadata:
366-
merge_metadata(options.metadata, metadata_blob)
365+
if options.build_data:
366+
merge_build_data(options.build_data, build_data_blob)

0 commit comments

Comments
 (0)