Git diff check improvements
- Show actual git diff on failure - Fix incorrect log messages Signed-off-by: Sean Eagan <seaneagan1@gmail.com> Change-Id: I3f369db2ba0606ff7eda6c6786b9dc0f2ae570aa
This commit is contained in:
parent
a4f63e77db
commit
353fed3df3
@ -16,11 +16,11 @@
|
|||||||
git update-index -q --ignore-submodules --refresh
|
git update-index -q --ignore-submodules --refresh
|
||||||
|
|
||||||
# Evaluate git files for difference, if found print message and fail.
|
# Evaluate git files for difference, if found print message and fail.
|
||||||
git diff-files --quiet --ignore-submodules
|
git diff --exit-code --ignore-submodules
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo "git diff found modified test cases, please run make test"
|
echo "error: git diff found, please run make test"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "no git diff detected, make target completed successfully"
|
echo "success: git diff not found"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user