diff options
author | Norbert Lindenberg <ecmascript@lindenbergsoftware.com> | 2012-09-12 15:09:36 -0700 |
---|---|---|
committer | Norbert Lindenberg <ecmascript@lindenbergsoftware.com> | 2012-09-12 15:09:36 -0700 |
commit | ab6a8e1e3506aea72134480dbda3f1a20f95ca97 (patch) | |
tree | 8220faac83fb4245444d3ede79ab9ea8254cf6b7 /tools/packaging/packager.py | |
parent | dd97fbee5f6a00e3a57068ef4f9b37ea34aaea28 (diff) | |
download | test262-ab6a8e1e3506aea72134480dbda3f1a20f95ca97.tar.gz |
Made web site packager insert line breaks into JSON files for saner diffs.
Diffstat (limited to 'tools/packaging/packager.py')
-rw-r--r-- | tools/packaging/packager.py | 7 |
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 |