mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
* 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>
19 lines
641 B
YAML
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}"
|