Code Review
/
doctor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
d73ee8e
)
Add exit status to notification time calculation
15/19715/1
author
Carlos Goncalves
<carlos.goncalves@neclab.eu>
Fri, 26 Aug 2016 14:00:29 +0000
(14:00 +0000)
committer
Bertrand Souville
<souville@docomolab-euro.com>
Mon, 29 Aug 2016 07:51:29 +0000
(07:51 +0000)
Change-Id: Ib85571c3939ecb5136eba2c5de8d4b72f2d0659e
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
(cherry picked from commit
d921539ad550fb4222aaa8d9fc742239150838af
)
tests/run.sh
patch
|
blob
|
history
diff --git
a/tests/run.sh
b/tests/run.sh
index
292a7ce
..
ee96da9
100755
(executable)
--- 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() {