Files
snapd/tests/core/backlight/task.yaml
Sergio Cazzolato 3a533b8094 tests: adding details to tests in core suite - part 1 (#13789)
* 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>
2024-04-09 16:09:59 -03:00

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"