build-pkg pkg-name of std pkg causes rt build failure
Brief Description ----------------- Designer issues 'build-pkg pkg-name' where pkg-name is only valid for std builds. Expected result is that only 'std' build is executed on the named package. What is observed is that aftes a successful std build, an 'rt' build is executed with an invalid package list causing a failure. The package is built correctly, but command returns 1. This breaks scripts that test build-pkgs return code. Problem ------- find_targets returned $EMPTY_LIST rather than $EMPTY_TARGETS as expected. Solution -------- find_targets must return $EMPTY_TARGETS when no targets are found for the build type. Closes-Bug: 1794542 Change-Id: I3d21bb793b1fc9637b16a08fdfcd2fd998742bfb Signed-off-by: Scott Little <scott.little@windriver.com>
This commit is contained in:
parent
717da7b675
commit
91f3b6f899
@ -174,7 +174,7 @@ find_targets () {
|
||||
local x=""
|
||||
local name=""
|
||||
local path=""
|
||||
local RESULT=" "
|
||||
local RESULT="$EMPTY_TARGETS"
|
||||
local FOUND=0
|
||||
|
||||
for d in $GIT_LIST; do
|
||||
@ -234,11 +234,7 @@ find_targets () {
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$RESULT" == " " ]; then
|
||||
echo "$EMPTY_LIST"
|
||||
else
|
||||
echo "$RESULT"
|
||||
fi
|
||||
echo "$RESULT"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,7 @@ find_targets () {
|
||||
local x=""
|
||||
local name=""
|
||||
local path=""
|
||||
local RESULT=" "
|
||||
local RESULT="$EMPTY_TARGETS"
|
||||
local FOUND=0
|
||||
|
||||
for d in $GIT_LIST; do
|
||||
@ -234,11 +234,7 @@ find_targets () {
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$RESULT" == " " ]; then
|
||||
echo "$EMPTY_LIST"
|
||||
else
|
||||
echo "$RESULT"
|
||||
fi
|
||||
echo "$RESULT"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user