mirror of
https://github.com/nix-community/home-manager
synced 2025-01-07 09:39:49 +01:00
espanso: fix test
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
parent
1b9dbef874
commit
02057ba30b
1 changed files with 9 additions and 1 deletions
|
@ -42,8 +42,16 @@
|
|||
|
||||
nmt.script = ''
|
||||
serviceFile=home-files/.config/systemd/user/espanso.service
|
||||
expectedServiceFile=${./basic-configuration.service}
|
||||
assertFileExists "$serviceFile"
|
||||
assertFileContent "$serviceFile" ${./basic-configuration.service}
|
||||
assertFileRegex "$serviceFile" 'ExecStart=.*/bin/espanso launcher'
|
||||
if [[ $(uname) == "Linux" ]]; then
|
||||
grep -v "/bin/espanso launcher" "$(_abs $serviceFile)" > espanso-service.actual
|
||||
grep -v "/bin/espanso launcher" "$expectedServiceFile" > espanso-service.expected
|
||||
assertFileContent "$(realpath espanso-service.actual)" espanso-service.expected
|
||||
else
|
||||
assertFileContent "$serviceFile" "$expectedServiceFile"
|
||||
fi
|
||||
|
||||
configFile=home-files/.config/espanso/config/default.yml
|
||||
assertFileExists "$configFile"
|
||||
|
|
Loading…
Reference in a new issue