scripts: improve automatic jenkins verification [1/1]
PD#SWPL-67525
Problem:
improve automatic jenkins verification
Solution:
improve automatic jenkins verification
Verify:
ad401_a113l
Change-Id: I6fc1d4e5b3e5a46b4ab65fd3352edfe96d75a856
Signed-off-by: Kelvin Zhang <kelvin.zhang@amlogic.com>
diff --git a/cherry_pick.sh b/cherry_pick.sh
index 4ba623f..e661e9f 100755
--- a/cherry_pick.sh
+++ b/cherry_pick.sh
@@ -22,12 +22,12 @@
if [ "$?" -ne 0 ]; then
git status
git log -1
- echo -e "\nFailed to apply patch!\n"
+ echo -e "\n${FUNCNAME[0]}: Failed to apply patch!\n"
return 1
fi
popd > /dev/null
else
- echo -e "\nNo such directory! $repo_path\n"
+ echo -e "\n${FUNCNAME[0]}: No such directory! $repo_path\n"
return 1
fi
}
@@ -106,12 +106,12 @@
if [ "$?" -ne 0 ]; then
git status
git log -1
- echo -e "-------- Failed to apply patch! --------"
+ echo -e "\n${FUNCNAME[0]}: Failed to apply patch!\n"
exit 1
fi
popd > /dev/null
else
- echo "No such directory! $repo_path"
+ echo -e "\n${FUNCNAME[0]}: No such directory! $repo_path\n"
exit 1
fi
echo -e "-------- Done --------\n"