diff options
author | Mariusz Drost <mariuszx.drost@intel.com> | 2020-03-04 12:11:04 +0000 |
---|---|---|
committer | Mariusz Drost <mariuszx.drost@intel.com> | 2020-03-04 12:49:17 +0000 |
commit | 2a6da083090db8cb5168092b31ff6476cb9e6cd5 (patch) | |
tree | e96bc9e0fd0e5c6d727b3aa224cec418f7000c63 /examples | |
parent | 83dc9425cb4f4314cebf2b267163826bf51cbb3a (diff) |
l4p/tcp_ofo: Add status on exit to test script
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
Diffstat (limited to 'examples')
-rw-r--r-- | examples/l4fwd/test/run_test.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/l4fwd/test/run_test.sh b/examples/l4fwd/test/run_test.sh index 431e973..7e892e6 100644 --- 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 |