jujutsu: evaluate the settings after merging with other options (#6775)
* jujutsu: evaluate the settings after merging with other options * jujutsu: add ediff to the test
This commit is contained in:
parent
f1ffd097e7
commit
da624eaad0
2 changed files with 22 additions and 17 deletions
|
|
@ -7,6 +7,7 @@ in
|
|||
programs.jujutsu = {
|
||||
enable = true;
|
||||
package = config.lib.test.mkStubPackage { };
|
||||
ediff = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "John Doe";
|
||||
|
|
@ -17,8 +18,12 @@ in
|
|||
|
||||
nmt.script = ''
|
||||
assertFileExists 'home-files/${configDir}/jj/config.toml'
|
||||
assertFileContent 'home-files/${configDir}/jj/config.toml' \
|
||||
assertFileContent $(normalizeStorePaths 'home-files/${configDir}/jj/config.toml') \
|
||||
${builtins.toFile "expected.toml" ''
|
||||
[merge-tools.ediff]
|
||||
merge-args = ["$left", "$right", "$base", "$output"]
|
||||
program = "/nix/store/00000000000000000000000000000000-emacs-ediff/bin/emacs-ediff"
|
||||
|
||||
[user]
|
||||
email = "jdoe@example.org"
|
||||
name = "John Doe"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue