mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
* tests: adding details to tests in core suite - part 1 * Update tests/core/compat/task.yaml Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl> * Update tests/core/basic18/task.yaml Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl> * Update tests/core/compat/task.yaml Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl> * Update tests/core/config-defaults-once/task.yaml Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl> * Update tests/core/core-dump/task.yaml Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl> * Update tests/core/create-user-2/task.yaml Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl> * Update tests/core/create-user-2/task.yaml Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl> * Update tests/core/create-user/task.yaml Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl> * Update tests/core/create-user/task.yaml Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl> * Update tests/core/fan/task.yaml Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl> * Update tests/core/grub-no-unpacked-assets/task.yaml Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl> * Update tests/core/core-to-snapd-failover16/task.yaml Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl> --------- Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>
26 lines
873 B
YAML
26 lines
873 B
YAML
summary: Test system.disable-backlight-service core config option
|
|
|
|
details: |
|
|
Check the backlight service can be enabled and disabled through
|
|
system.disable-backlight-service core config option
|
|
|
|
environment:
|
|
MASKFILE: /etc/systemd/system/systemd-backlight@.service
|
|
|
|
execute: |
|
|
echo "Backlight is not masked by default"
|
|
systemctl status systemd-backlight@foo | MATCH "Loaded: loaded"
|
|
|
|
echo "Check that backlight service can be disabled"
|
|
snap set core system.disable-backlight-service=true
|
|
|
|
systemctl status systemd-backlight@foo | MATCH "Loaded: masked"
|
|
test -L "$MASKFILE"
|
|
[ "$(readlink $MASKFILE)" = "/dev/null" ]
|
|
|
|
echo "Check that backlight service can be enabled"
|
|
snap set core system.disable-backlight-service=false
|
|
|
|
systemctl status systemd-backlight@foo | MATCH "Loaded: loaded"
|
|
not test -e "$MASKFILE"
|