From ac6be504cb38f0eb9d158a3a3912cf4e07267f70 Mon Sep 17 00:00:00 2001 From: Craig Cornelius Date: Tue, 7 Jan 2025 09:30:55 -0800 Subject: [PATCH] Update RDTF code generation to use latest nodejs data (#378) * Update RDTF code generation to use latest nodejs data * Add all node versions --- testgen/generators/relativedatetime_fmt.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/testgen/generators/relativedatetime_fmt.py b/testgen/generators/relativedatetime_fmt.py index 6755928a..4ea602e3 100644 --- a/testgen/generators/relativedatetime_fmt.py +++ b/testgen/generators/relativedatetime_fmt.py @@ -21,6 +21,11 @@ def process_test_data(self): 'icu73': '20.1.0', 'icu72': '18.14.2', 'icu71': '18.7.0', + 'icu70': '14.21.3', + 'icu69': '14.18.3', + 'icu68': '14.17.0', + 'icu67': '14.16.0', + 'icu66': '14.0.0' } exec_list = ['node generators/rdt_fmt_gen.js'] @@ -29,8 +34,12 @@ def process_test_data(self): exec_list.append(str(self.run_limit)) print("RDTF generator: ", exec_list) + nodejs_version = icu_nvm_versions[self.icu_version] + source_command = 'source ~/.nvm/nvm.sh; nvm install %s; nvm use %s --silent' % ( + nodejs_version, nodejs_version) + run_list = [ - ['source ~/.nvm/nvm.sh; nvm install 21.6.0; nvm use 21.6.0 --silent'], + [source_command], exec_list, ['mv rdt_fmt*.json icu74'] ]