summaryrefslogtreecommitdiff
diff options
-rw-r--r--tests/main/snap-system-env/task.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/main/snap-system-env/task.yaml b/tests/main/snap-system-env/task.yaml
index 1fa1b234bf..d41a10fe2b 100644
--- a/tests/main/snap-system-env/task.yaml
+++ b/tests/main/snap-system-env/task.yaml
@@ -1,7 +1,7 @@
summary: Ensure systemd environment generator works
# systemd environment generators are only supported on 17.10+
-systems: [ubuntu-18.04-*, ubuntu-18.10-*, ubuntu-19.04-*]
+systems: [ubuntu-18.04-*, ubuntu-18.10-*, ubuntu-19.04-*, ubuntu-2*]
execute: |
# integration test to ensure it works on the real system
@@ -26,8 +26,8 @@ execute: |
! MATCH 'PATH=.*/snap/bin' < env.out
exit 0
else
- # ensure /snap/bin is part of the PATH
- MATCH 'PATH=.*:/snap/bin.*' < env.out
+ # ensure PATH is updated (and check full PATH, see LP: #1814355)
+ MATCH 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin' < env.out
fi
# some unit tests