summaryrefslogtreecommitdiff
diff options
-rw-r--r--tests/main/login/task.yaml14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/main/login/task.yaml b/tests/main/login/task.yaml
index 2108d738dd..eafdf2ee33 100644
--- a/tests/main/login/task.yaml
+++ b/tests/main/login/task.yaml
@@ -15,12 +15,14 @@ execute: |
if [[ $SPREAD_STORE_USER && $SPREAD_STORE_PASSWORD ]]; then
echo "Checking successful login"
expect -f successful_login.exp
+
+ output=$(snap is-managed)
+ if [ "$output" != "system is managed" ]; then
+ echo "Unexpected output from 'snap is-managed'"
+ echo $output
+ exit 1
+ fi
+
snap logout
fi
- output=$(snap is-managed)
- if [ "$output" != "system is managed" ]; then
- echo "Unexpected output from 'snap is-managed'"
- echo $output
- exit 1
- fi