From be82787a00f8b2de474e1bfb29d65d04af72255f Mon Sep 17 00:00:00 2001 From: David Fugate Date: Mon, 26 Sep 2011 17:22:29 -0700 Subject: Do not include 'code' key in test object metadata. --- tools/packaging/packager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/packaging/packager.py b/tools/packaging/packager.py index 847995187..af30cf743 100644 --- a/tools/packaging/packager.py +++ b/tools/packaging/packager.py @@ -268,7 +268,9 @@ for chapter in TEST_SUITE_SECTIONS: with open(test262PathToConsoleFile(testDict["path"]), "w") as fConsole: fConsole.write(scriptCodeContent) with open(test262PathToConsoleFile(testDict["path"][:-3] + "_metadata.js"), "w") as fConsoleMeta: - fConsoleMeta.write("testDescrip = " + str(testDict)) + metaDict = testDict.copy() + del metaDict["code"] + fConsoleMeta.write("testDescrip = " + str(metaDict)) testCount += 1 else: print "Excluded:", testName -- cgit v1.2.3