Skip to content

Commit

Permalink
Merge pull request #4634 from sergiocazzolato/tests-fix-job-canceled-…
Browse files Browse the repository at this point in the history
…snapd-socket

tests: check if snapd.socket is active before stoping it
  • Loading branch information
mvo5 authored Feb 7, 2018
2 parents 0c33c19 + 2065284 commit f586f73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/lib/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ reset_classic() {

echo "Ensure the service is active before stopping it"
retries=20
systemctl status snapd.service || true
while systemctl status snapd.service | grep "Active: activating"; do
systemctl status snapd.service snapd.socket || true
while systemctl status snapd.service snapd.socket | grep "Active: activating"; do
if [ $retries -eq 0 ]; then
echo "snapd service not active"
echo "snapd service or socket not active"
exit 1
fi
retries=$(( $retries - 1 ))
Expand Down

0 comments on commit f586f73

Please sign in to comment.