mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
tests/redshift-gammastep: check file exists first
Just leads to less confusing output when we have a missing file. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -16,9 +16,12 @@
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/gammastep/config.ini
|
||||
assertFileContent \
|
||||
home-files/.config/gammastep/config.ini \
|
||||
${./gammastep-basic-configuration-file-expected.conf}
|
||||
|
||||
assertFileExists home-files/.config/systemd/user/gammastep.service
|
||||
assertFileContent \
|
||||
home-files/.config/systemd/user/gammastep.service \
|
||||
${./gammastep-basic-configuration-expected.service}
|
||||
|
||||
@@ -17,9 +17,12 @@
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/gammastep/config.ini
|
||||
assertFileContent \
|
||||
home-files/.config/gammastep/config.ini \
|
||||
${./gammastep-basic-configuration-file-expected.conf}
|
||||
|
||||
assertFileExists home-files/.config/systemd/user/gammastep.service
|
||||
assertFileContent \
|
||||
home-files/.config/systemd/user/gammastep.service \
|
||||
${./gammastep-tray-configuration-expected.service}
|
||||
|
||||
@@ -16,9 +16,12 @@
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/redshift/redshift.conf
|
||||
assertFileContent \
|
||||
home-files/.config/redshift/redshift.conf \
|
||||
${./redshift-basic-configuration-file-expected.conf}
|
||||
|
||||
assertFileExists home-files/.config/systemd/user/redshift.service
|
||||
assertFileContent \
|
||||
home-files/.config/systemd/user/redshift.service \
|
||||
${./redshift-basic-configuration-expected.service}
|
||||
|
||||
@@ -17,9 +17,11 @@
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/redshift/redshift.conf
|
||||
assertFileContent \
|
||||
home-files/.config/redshift/redshift.conf \
|
||||
${./redshift-basic-configuration-file-expected.conf}
|
||||
assertFileExists home-files/.config/systemd/user/redshift.service
|
||||
assertFileContent \
|
||||
home-files/.config/systemd/user/redshift.service \
|
||||
${./redshift-tray-configuration-expected.service}
|
||||
|
||||
Reference in New Issue
Block a user