diff options
| author | Michael Vogt <mvo@ubuntu.com> | 2016-10-05 17:27:44 +0200 |
|---|---|---|
| committer | Michael Vogt <mvo@ubuntu.com> | 2016-10-05 17:27:44 +0200 |
| commit | e152103a0220633d1e32ff7a82679bcc8d464717 (patch) | |
| tree | 36b98b32aa42a43fec6e932af4e87ff80f2698b3 | |
| parent | a855eb9c81e96be17399e0e24c29af00d9f1bb04 (diff) | |
fix spread testfeature/is-managed
| -rw-r--r-- | tests/main/login/task.yaml | 14 |
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 |
