summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authorCarlos Goncalves <carlos.goncalves@neclab.eu>2016-08-26 14:00:29 +0000
committerBertrand Souville <souville@docomolab-euro.com>2016-08-29 07:51:29 +0000
commit148aeb75304e99504d7df8924613639030549aac (patch)
treea8fa4720938a4c31e244ddddf920ecb36a94e1e8 /tests/run.sh
parentd73ee8e0341cf6c62f6e9090b7e150af53c7af3b (diff)
Add exit status to notification time calculation
Change-Id: Ib85571c3939ecb5136eba2c5de8d4b72f2d0659e Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu> (cherry picked from commit d921539ad550fb4222aaa8d9fc742239150838af)
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/run.sh b/tests/run.sh
index 292a7ce7..ee96da9d 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -484,7 +484,11 @@ calculate_notification_time() {
exit 1
fi
echo "$notified $detected" | \
- awk '{d = $1 - $2; if (d < 1 && d > 0) print d " OK"; else print d " NG"}'
+ awk '{
+ d = $1 - $2;
+ if (d < 1 && d > 0) { print d " OK"; exit 0 }
+ else { print d " NG"; exit 1 }
+ }'
}
check_host_status() {