espanso: fix test
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
parent
29fce40e13
commit
6ed700bfe4
1 changed files with 7 additions and 1 deletions
|
|
@ -46,8 +46,14 @@
|
|||
|
||||
nmt.script = ''
|
||||
serviceFile=home-files/.config/systemd/user/espanso.service
|
||||
expectedServiceFile=${./basic-configuration.service}
|
||||
assertFileExists "$serviceFile"
|
||||
assertFileContent "$serviceFile" ${./basic-configuration.service}
|
||||
# ensure espanso is in ExecStart
|
||||
assertFileRegex "$serviceFile" 'ExecStart=.*/bin/espanso launcher'
|
||||
# rest of the file should be identical
|
||||
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
|
||||
|
||||
configFile=home-files/.config/espanso/config/default.yml
|
||||
assertFileExists "$configFile"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue