Code Review
/
tldk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
83dc942
)
l4p/tcp_ofo: Add status on exit to test script
49/25649/1
author
Mariusz Drost
<mariuszx.drost@intel.com>
Wed, 4 Mar 2020 12:11:04 +0000
(12:11 +0000)
committer
Mariusz Drost
<mariuszx.drost@intel.com>
Wed, 4 Mar 2020 12:49:17 +0000
(12:49 +0000)
For script usage in Jenkins environment status needs to be passed on
exit. Correct status is calculated based on tests outcome.
Signed-off-by: Mariusz Drost <mariuszx.drost@intel.com>
Change-Id: Iea8ec45688e0f4a18e1dbe3bc0fd7cd83e6137fb
examples/l4fwd/test/run_test.sh
patch
|
blob
|
history
diff --git
a/examples/l4fwd/test/run_test.sh
b/examples/l4fwd/test/run_test.sh
index
431e973
..
7e892e6
100644
(file)
--- a/
examples/l4fwd/test/run_test.sh
+++ b/
examples/l4fwd/test/run_test.sh
@@
-280,3
+280,10
@@
fi
# print report after all tests were done
echo -e "Report:\n"
cat ${result}
+
+if [[ ${error_count} -eq 0 ]]
+then
+ exit 0
+else
+ exit 1
+fi