Files
snapd/tests/main/debug-paths/task.yaml
Sergio Cazzolato fe6e39a2bc tests: more details in spread tests - part 13 (#13924)
* Adding more details to tests - part 13

* Add more details

* adding more tests

* Update tests/main/debs/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/debug-sandbox/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/econnreset/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/enable-disable/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/health/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/snap-validate-enforce/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/snap-validate-with-store/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/enable-disable/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/debug-paths/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/default-tracks/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/enable-disable/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

---------

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>
2024-05-02 08:14:13 -03:00

19 lines
641 B
YAML

summary: Verify paths are correctly reported
details: |
This test checks that the command `snap debug paths` shows
the correct paths for the SNAPD_MOUNT, SNAPD_BIN and SNAPD_LIBEXEC
environment variables.
execute: |
SNAP_MOUNT_DIR="$(os.paths snap-mount-dir)"
LIBEXEC_DIR="$(os.paths libexec-dir)"
snap debug paths | MATCH "^SNAPD_MOUNT=${SNAP_MOUNT_DIR}$"
snap debug paths | MATCH "^SNAPD_BIN=${SNAP_MOUNT_DIR}/bin$"
snap debug paths | MATCH "^SNAPD_LIBEXEC=${LIBEXEC_DIR}/snapd$"
# double check we can eval it as shell
eval "$(snap debug paths)"
test "${SNAPD_MOUNT}" = "${SNAP_MOUNT_DIR}"