autobuild.sh: git diff when astyle errors detected.
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ife57a75c8e5ea6f7cc43d12a73a487b82e1bcd65
This commit is contained in:
parent
0e6463d9b3
commit
b61b099030
@ -14,6 +14,7 @@ if hash astyle; then
|
|||||||
astyle --options=.astylerc "*.h" >> astyle.log
|
astyle --options=.astylerc "*.h" >> astyle.log
|
||||||
if grep -q "^Formatted" astyle.log; then
|
if grep -q "^Formatted" astyle.log; then
|
||||||
echo " errors detected"
|
echo " errors detected"
|
||||||
|
git diff
|
||||||
sed -i -e 's/ / /g' astyle.log
|
sed -i -e 's/ / /g' astyle.log
|
||||||
grep --color=auto "^Formatted.*" astyle.log
|
grep --color=auto "^Formatted.*" astyle.log
|
||||||
echo "Incorrect code style detected in one or more files."
|
echo "Incorrect code style detected in one or more files."
|
||||||
|
Loading…
Reference in New Issue
Block a user