From: nibha.sharma Date: Tue, 1 Aug 2017 05:26:42 +0000 (+0530) Subject: [TBT][Scripts][NonACR][Changes in build script] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbbc3136bd79abd72978e3fc291ecb849f126045;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][Scripts][NonACR][Changes in build script] Change-Id: Ib31dad1bfc4cd18e2e4a1da446e52e51fc56cb21 Signed-off-by: nibha.sharma --- diff --git a/scripts_tpk/tpk_create.sh b/scripts_tpk/tpk_create.sh index 2a16389..48efd77 100755 --- a/scripts_tpk/tpk_create.sh +++ b/scripts_tpk/tpk_create.sh @@ -155,14 +155,7 @@ elif [ "$ARCH_TYPE" == "x86_64" ]; then ARCH="x86_64" fi -UNSUPPORTED_FILE="tct_unsupported.txt" -SUPPORTED=`cat ./$UNSUPPORTED_FILE | grep "$PROFILE_TYPE:$ARCH:$TESTCASE_TYPE:$MODULE_NAME;"` -if [[ $SUPPORTED != "" ]] -then - echo $green "Module:$MODULE_NAME is not supported" - echo $green"'SKIPPING' THIS MODULE FROM BUILD PROCESS" - echo ""$reset - sleep 1 +if [[ ( $MODULE_NAME == "BuildLog" ) || ( $MODULE_NAME == "docs" ) || ( $MODULE_NAME == "release" ) || ( $MODULE_NAME == "rootstrap.txt" ) || ( $MODULE_NAME == "scripts_tpk" ) || ( $MODULE_NAME == "tpkbuild" )]]; then exit fi diff --git a/scripts_tpk/tpkbuild.sh b/scripts_tpk/tpkbuild.sh index b7b54be..aaa51c3 100755 --- a/scripts_tpk/tpkbuild.sh +++ b/scripts_tpk/tpkbuild.sh @@ -88,15 +88,19 @@ function build { if [ "$#" -eq "2" ]; then scripts_tpk/tpk_create.sh $1 $2 $ARCH_TYPE $PROFILE_TYPE | tee -a BuildLog/$1/$2.txt - #below code remove the log file in case build is SUCCESS - #keep the log file only for build FAILED modules - while read LINE - do - if [[ $LINE =~ "CREATION SUCCESSFUL" ]] || [[ $LINE =~ "BUILD FAILED : Module doesn't exist" ]] || [[ $LINE =~ "'SKIPPING' THIS MODULE FROM BUILD PROCESS" ]]; then + if [[ ( $2 == "BuildLog" ) || ( $2 == "docs" ) || ( $2 == "release" ) || ( $2 == "rootstrap.txt" ) || ( $2 == "scripts_tpk" ) || ( $2 == "tpkbuild" )]]; then rm BuildLog/$1/$2.txt - break + #below code remove the log file in case build is SUCCESS + #keep the log file only for build FAILED modules + else + while read LINE + do + if [[ $LINE =~ "CREATION SUCCESSFUL" ]] || [[ $LINE =~ "BUILD FAILED : Module doesn't exist" ]]; then + rm BuildLog/$1/$2.txt + break + fi + done :::; ###### -########################################################################################################## - -################## -##### mobile ##### -################## - -## tbt ## -mobile:armv7l:tbt:BuildLog; -mobile:armv7l:tbt:docs; -mobile:armv7l:tbt:release; -mobile:armv7l:tbt:scripts_tpk; -mobile:armv7l:tbt:tct_unsupported.txt; -mobile:armv7l:tbt:tpkbuild; -mobile:x86:tbt:BuildLog; -mobile:x86:tbt:docs; -mobile:x86:tbt:release; -mobile:x86:tbt:scripts_tpk; -mobile:x86:tbt:tct_unsupported.txt; -mobile:x86:tbt:tpkbuild; -