From 9671c1461d05b4d6ad21354f93353034ad454b35 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 10 Aug 2018 11:20:47 -0700 Subject: [PATCH] Update test to be more testy --- tests/test.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/test.sh b/tests/test.sh index af834be..84546dc 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -1,4 +1,5 @@ #! /bin/bash +set -e image=$1 @@ -35,6 +36,10 @@ else echo "Restore backup..." /restore.sh + echo "Verify restore..." + test -f /data/test.txt + cat /data/test.txt + echo "Verify backup..." /verify.sh @@ -49,10 +54,9 @@ else echo "Verify restore happened..." test -f /data/test.txt + cat /data/test.txt echo "Verify restore with incorrect passphrase fails..." - export PASSPHRASE=Incorrect.Mule.Solar.Paperclip - echo "Fail to restore backup..." - /restore.sh && exit 1 || echo "OK" + PASSPHRASE=Incorrect.Mule.Solar.Paperclip /restore.sh && exit 1 || echo "OK" fi