From 87be1bf6eca88f7d05a1dce668030622dcf4f7e7 Mon Sep 17 00:00:00 2001 From: David Fugate Date: Wed, 28 Mar 2012 16:05:03 -0700 Subject: https://bugs.ecmascript.org/show_bug.cgi?id=65 fixed. --- tools/packaging/packager.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tools') diff --git a/tools/packaging/packager.py b/tools/packaging/packager.py index 3e3a787a4..174174898 100644 --- a/tools/packaging/packager.py +++ b/tools/packaging/packager.py @@ -271,9 +271,6 @@ for chapter in TEST_SUITE_SECTIONS: if TESTCASELIST_PER_JSON: CHAPTER_TEST_CASES_JSON = {} CHAPTER_TEST_CASES_JSON["numTests"] = int(sect["numTests"]) - CHAPTER_TEST_CASES_JSON["version"] = ARGS.version - CHAPTER_TEST_CASES_JSON["date"] = \ - str(datetime.datetime.now().date()) CHAPTER_TEST_CASES_JSON["testSuite"] = \ [WEBSITE_CASES_PATH + chapterName + ".json"] with open(os.path.join(TEST262_WEB_CASES_DIR, @@ -298,13 +295,18 @@ for chapter in TEST_SUITE_SECTIONS: #create a root node for our suite TEST_CASES_JSON = {} TEST_CASES_JSON["numTests"] = TOTAL_TEST_COUNT -TEST_CASES_JSON["version"] = ARGS.version -TEST_CASES_JSON["date"] = str(datetime.datetime.now().date()) 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) generateHarness(ARGS.type, "default.json", "Chapters 1-16") +#Overall description of this version of the test suite +SUITE_DESCRIP_JSON = {} +SUITE_DESCRIP_JSON["version"] = ARGS.version +SUITE_DESCRIP_JSON["date"] = str(datetime.datetime.now().date()) +with open(os.path.join(TEST262_WEB_CASES_DIR, "suiteDescrip.json"), "w") as f: + json.dump(SUITE_DESCRIP_JSON, f, separators=(',',':'), sort_keys=True) + #Deploy test harness to website as well print "" print "Deploying test harness files to 'TEST262_WEB_HARNESS_DIR'..." -- cgit v1.2.3