configure: Set profile = user by default

This commit is contained in:
jyn 2023-04-19 08:25:29 -05:00
parent 6d07dbc266
commit b7607a9113
2 changed files with 3 additions and 0 deletions

View file

@ -97,6 +97,7 @@ class GenerateAndParseConfig(unittest.TestCase):
def test_no_args(self):
build = self.serialize_and_parse([])
self.assertEqual(build.get_toml("changelog-seen"), '2')
self.assertEqual(build.get_toml("profile"), 'user')
self.assertIsNone(build.get_toml("llvm.download-ci-llvm"))
def test_set_section(self):

View file

@ -417,6 +417,8 @@ def parse_example_config(known_args, config):
# Avoid using quotes unless it's necessary.
targets[target][0] = targets[target][0].replace("x86_64-unknown-linux-gnu", "'{}'".format(target) if "." in target else target)
if 'profile' not in config:
set('profile', 'user', config)
configure_file(sections, top_level_keys, targets, config)
return section_order, sections, targets