mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
d3d24ef2f2
commit
5576ce2de3
@@ -155,6 +155,14 @@ oe-build-perf-test --out-dir "$results_dir" \
|
|||||||
"${oe_build_perf_test_extra_opts[@]}" \
|
"${oe_build_perf_test_extra_opts[@]}" \
|
||||||
--lock-file "$base_dir/oe-build-perf.lock"
|
--lock-file "$base_dir/oe-build-perf.lock"
|
||||||
|
|
||||||
|
case $? in
|
||||||
|
1) echo "ERROR: oe-build-perf-test script failed!"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
2) echo "NOTE: some tests failed!"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Commit results to git
|
# Commit results to git
|
||||||
if [ -n "$results_repo" ]; then
|
if [ -n "$results_repo" ]; then
|
||||||
echo -e "\nArchiving results in $results_repo"
|
echo -e "\nArchiving results in $results_repo"
|
||||||
@@ -167,14 +175,6 @@ if [ -n "$results_repo" ]; then
|
|||||||
"$results_dir"
|
"$results_dir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $? in
|
|
||||||
1) echo "ERROR: oe-build-perf-test script failed!"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
2) echo "NOTE: some tests failed!"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
echo -ne "\n\n-----------------\n"
|
echo -ne "\n\n-----------------\n"
|
||||||
echo "Global results file:"
|
echo "Global results file:"
|
||||||
echo -ne "\n"
|
echo -ne "\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user