From 1c77a7a4cc9caa2cc949ad9a427dd130b98d54d1 Mon Sep 17 00:00:00 2001
From: pierreozoux <pierre@ozoux.net>
Date: Fri, 9 Jan 2015 12:41:01 +0100
Subject: [PATCH] Updates tests

---
 tests/deep-clean.sh | 3 ++-
 tests/finish.sh     | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/deep-clean.sh b/tests/deep-clean.sh
index 4da3fe0..be59469 100755
--- a/tests/deep-clean.sh
+++ b/tests/deep-clean.sh
@@ -1,7 +1,8 @@
 #!/bin/bash -eux
 
 image=$1
+BACKUP_DESTINATION=`cat /data/BACKUP_DESTINATION`
 
 /data/indiehosters/tests/clean-image.sh $image
 
-ssh core@backup.dev "rm -rf $image.test"
+ssh $BACKUP_DESTINATION "rm -rf $image.test"
diff --git a/tests/finish.sh b/tests/finish.sh
index 9e776d9..245b60d 100755
--- a/tests/finish.sh
+++ b/tests/finish.sh
@@ -1,6 +1,6 @@
 #!/bin/bash -eux
 
-systemctl list-units | grep failed
+systemctl list-units | grep -c failed | grep 0
 
 applications=( static static-git wordpress known)
 
-- 
GitLab