aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNorbert Lindenberg <ecmascript@lindenbergsoftware.com>2012-09-12 15:09:36 -0700
committerNorbert Lindenberg <ecmascript@lindenbergsoftware.com>2012-09-12 15:09:36 -0700
commit1ba4238d9a60fb9072d7e43da8a19d271580b5dc (patch)
tree8220faac83fb4245444d3ede79ab9ea8254cf6b7 /tools
parent75fbd71ee0a39c76cf035e744dc28e408bff7c6f (diff)
Made web site packager insert line breaks into JSON files for saner diffs.
Diffstat (limited to 'tools')
-rw-r--r--tools/packaging/packager.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/packaging/packager.py b/tools/packaging/packager.py
index ae524306d..163173210 100644
--- a/tools/packaging/packager.py
+++ b/tools/packaging/packager.py
@@ -270,7 +270,8 @@ for chapter in TEST_SUITE_SECTIONS:
testsList["testsCollection"] = sect
with open(os.path.join(TEST262_WEB_CASES_DIR, chapterName + ".json"),
"w") as f:
- json.dump(testsList, f, separators=(',',':'), sort_keys=True)
+ json.dump(testsList, f, separators=(',',':'), sort_keys=True,
+ indent=0)
if TESTCASELIST_PER_JSON:
@@ -282,7 +283,7 @@ for chapter in TEST_SUITE_SECTIONS:
"testcases_%s.json" % chapterName),
"w") as f:
json.dump(CHAPTER_TEST_CASES_JSON, f, separators=(',',':'),
- sort_keys=True)
+ sort_keys=True, indent=0)
generateHarness(ARGS.type, "testcases_%s.json" % chapterName,
chapterName.replace("ch", "Chapter "))
@@ -302,7 +303,7 @@ TEST_CASES_JSON = {}
TEST_CASES_JSON["numTests"] = TOTAL_TEST_COUNT
TEST_CASES_JSON["testSuite"] = SECTIONS_LIST
with open(os.path.join(TEST262_WEB_CASES_DIR, "default.json"), "w") as f:
- json.dump(TEST_CASES_JSON, f, separators=(',',':'), sort_keys=True)
+ json.dump(TEST_CASES_JSON, f, separators=(',',':'), sort_keys=True, indent=0)
generateHarness(ARGS.type, "default.json", "Chapters 1-16")
#Overall description of this version of the test suite