aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Fugate <dfugate@microsoft.com>2012-03-28 16:05:03 -0700
committerDavid Fugate <dfugate@microsoft.com>2012-03-28 16:05:03 -0700
commit87be1bf6eca88f7d05a1dce668030622dcf4f7e7 (patch)
treee5d2181272ef37853132888a99370769083cda7d /tools
parent2a112abbd5eac9cea3672cf16d97ba3ca65fb846 (diff)
https://bugs.ecmascript.org/show_bug.cgi?id=65 fixed.
Diffstat (limited to 'tools')
-rw-r--r--tools/packaging/packager.py12
1 files changed, 7 insertions, 5 deletions
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'..."