summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/build-perf-test-wrapper.sh
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2017-04-03 18:58:37 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-05 23:22:13 +0100
commit5576ce2de363a31d944b43514968c8b31abbcb40 (patch)
treeffd855012ffcaa973fca0b46299512403f2a0e43 /scripts/contrib/build-perf-test-wrapper.sh
parentd3d24ef2f2c390c235198ae10f3890eb42186aa1 (diff)
downloadpoky-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>
Diffstat (limited to 'scripts/contrib/build-perf-test-wrapper.sh')
-rwxr-xr-xscripts/contrib/build-perf-test-wrapper.sh16
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
158case $? in
159 1) echo "ERROR: oe-build-perf-test script failed!"
160 exit 1
161 ;;
162 2) echo "NOTE: some tests failed!"
163 ;;
164esac
165
158# Commit results to git 166# Commit results to git
159if [ -n "$results_repo" ]; then 167if [ -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"
168fi 176fi
169 177
170case $? in
171 1) echo "ERROR: oe-build-perf-test script failed!"
172 exit 1
173 ;;
174 2) echo "NOTE: some tests failed!"
175 ;;
176esac
177
178echo -ne "\n\n-----------------\n" 178echo -ne "\n\n-----------------\n"
179echo "Global results file:" 179echo "Global results file:"
180echo -ne "\n" 180echo -ne "\n"