mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
tests: avoid unnecessary test script interpolation
This commit is contained in:
parent
1e47f7101f
commit
24bb01ea17
1 changed files with 10 additions and 12 deletions
|
|
@ -44,17 +44,16 @@ with lib;
|
|||
|
||||
--
|
||||
'' config.warnings;
|
||||
"asserts/warnings.expected".text = concatStringsSep ''
|
||||
|
||||
--
|
||||
'' config.test.asserts.warnings.expected;
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
home-files/asserts/warnings.actual \
|
||||
${
|
||||
pkgs.writeText "warnings.expected" (concatStringsSep ''
|
||||
|
||||
--
|
||||
'' config.test.asserts.warnings.expected)
|
||||
}
|
||||
"$TESTED/home-files/asserts/warnings.expected"
|
||||
'';
|
||||
})
|
||||
|
||||
|
|
@ -64,17 +63,16 @@ with lib;
|
|||
|
||||
--
|
||||
'' (map (x: x.message) (filter (x: !x.assertion) config.assertions));
|
||||
"asserts/assertions.expected".text = concatStringsSep ''
|
||||
|
||||
--
|
||||
'' config.test.asserts.assertions.expected;
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
home-files/asserts/assertions.actual \
|
||||
${
|
||||
pkgs.writeText "assertions.expected" (concatStringsSep ''
|
||||
|
||||
--
|
||||
'' config.test.asserts.assertions.expected)
|
||||
}
|
||||
"$TESTED/home-files/asserts/assertions.expected"
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue