Skip to content

Commit

Permalink
Fix data generation from nodejs with nvm run plus command (unicode-…
Browse files Browse the repository at this point in the history
…org#387)

* Update RDTF code generation to use latest nodejs data

* Add all node versions

* Use nvm run to get correct data generation version
  • Loading branch information
sven-oly authored Jan 14, 2025
1 parent e1dfd41 commit 43965ba
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions testgen/generators/relativedatetime_fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@ def process_test_data(self):
if self.run_limit:
exec_list.append('-run_limit')
exec_list.append(str(self.run_limit))
print("RDTF generator: ", exec_list)
exec_command = ' '.join(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)
source_command = 'source ~/.nvm/nvm.sh; nvm run %s; %s' % (
nodejs_version, exec_command)

run_list = [
[source_command],
exec_list,
source_command,
['mv rdt_fmt*.json icu74']
]

Expand Down

0 comments on commit 43965ba

Please sign in to comment.