Override the build config with new values provided as kwargs.
(basedir, **kwargs)
| 141 | json.dump(config, f) |
| 142 | |
| 143 | def override_build_config(basedir, **kwargs): |
| 144 | """Override the build config with new values provided as kwargs.""" |
| 145 | if not kwargs: |
| 146 | return |
| 147 | path = basedir / 'out' / 'build' / 'v8_build_config.json' |
| 148 | with open(path) as f: |
| 149 | config = json.load(f) |
| 150 | config.update(kwargs) |
| 151 | with open(path, 'w') as f: |
| 152 | json.dump(config, f) |
| 153 | |
| 154 | @dataclass |
| 155 | class TestResult(): |