diff options
author | Arthur Gautier <arthur.gautier@arista.com> | 2021-12-01 16:08:23 +0100 |
---|---|---|
committer | Arthur Gautier <arthur.gautier@arista.com> | 2021-12-01 17:25:58 +0100 |
commit | 21520297dad8a198004e4551808a4818a8de7ddd (patch) | |
tree | a69a5c19b1528a88414401c3066e266c0983ebb5 /src/libutil/tests/config.cc | |
parent | 1a9bfdc4ca0c2786b02801540432badbafa3a811 (diff) |
reproducibility: hide non-reproducible settings from manual
Because the manual is generated from default values which are themselves
generated from various sources (cpuid, bios settings (kvm), number of
cores). This commit hides non-reproducible settings from the manual
output.
Diffstat (limited to 'src/libutil/tests/config.cc')
-rw-r--r-- | src/libutil/tests/config.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/tests/config.cc b/src/libutil/tests/config.cc index 0ebdaf3db..8be6730dd 100644 --- a/src/libutil/tests/config.cc +++ b/src/libutil/tests/config.cc @@ -161,7 +161,7 @@ namespace nix { Setting<std::string> setting{&config, "", "name-of-the-setting", "description"}; setting.assign("value"); - ASSERT_EQ(config.toJSON().dump(), R"#({"name-of-the-setting":{"aliases":[],"defaultValue":"","description":"description\n","value":"value"}})#"); + ASSERT_EQ(config.toJSON().dump(), R"#({"name-of-the-setting":{"aliases":[],"defaultValue":"","description":"description\n","documentDefault":true,"value":"value"}})#"); } TEST(Config, setSettingAlias) { |