diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2017-04-03 18:58:37 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-05 23:22:13 +0100 |
commit | 5576ce2de363a31d944b43514968c8b31abbcb40 (patch) | |
tree | ffd855012ffcaa973fca0b46299512403f2a0e43 | |
parent | d3d24ef2f2c390c235198ae10f3890eb42186aa1 (diff) | |
download | poky-5576ce2de363a31d944b43514968c8b31abbcb40.tar.gz |
build-perf-test-wrapper.sh: correctly check test script exit status
Test of the exit code was accidentally moved to wrong place when
oe-git-archive was taken into use.
(From OE-Core rev: ed43b2dfe019f35086967a0c8dc605bc6629c75b)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/contrib/build-perf-test-wrapper.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/contrib/build-perf-test-wrapper.sh b/scripts/contrib/build-perf-test-wrapper.sh index 7b7e4dddc6..e804ac24cc 100755 --- a/scripts/contrib/build-perf-test-wrapper.sh +++ b/scripts/contrib/build-perf-test-wrapper.sh | |||
@@ -155,6 +155,14 @@ oe-build-perf-test --out-dir "$results_dir" \ | |||
155 | "${oe_build_perf_test_extra_opts[@]}" \ | 155 | "${oe_build_perf_test_extra_opts[@]}" \ |
156 | --lock-file "$base_dir/oe-build-perf.lock" | 156 | --lock-file "$base_dir/oe-build-perf.lock" |
157 | 157 | ||
158 | case $? in | ||
159 | 1) echo "ERROR: oe-build-perf-test script failed!" | ||
160 | exit 1 | ||
161 | ;; | ||
162 | 2) echo "NOTE: some tests failed!" | ||
163 | ;; | ||
164 | esac | ||
165 | |||
158 | # Commit results to git | 166 | # Commit results to git |
159 | if [ -n "$results_repo" ]; then | 167 | if [ -n "$results_repo" ]; then |
160 | echo -e "\nArchiving results in $results_repo" | 168 | echo -e "\nArchiving results in $results_repo" |
@@ -167,14 +175,6 @@ if [ -n "$results_repo" ]; then | |||
167 | "$results_dir" | 175 | "$results_dir" |
168 | fi | 176 | fi |
169 | 177 | ||
170 | case $? in | ||
171 | 1) echo "ERROR: oe-build-perf-test script failed!" | ||
172 | exit 1 | ||
173 | ;; | ||
174 | 2) echo "NOTE: some tests failed!" | ||
175 | ;; | ||
176 | esac | ||
177 | |||
178 | echo -ne "\n\n-----------------\n" | 178 | echo -ne "\n\n-----------------\n" |
179 | echo "Global results file:" | 179 | echo "Global results file:" |
180 | echo -ne "\n" | 180 | echo -ne "\n" |