kernel: test: Fix detection on kernel changes.

Kernele changes are not being detected, fix it.

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz
2019-01-08 16:25:28 -06:00
parent 2e93dbd737
commit a5c2a2c813

View File

@@ -19,7 +19,7 @@ make_target() {
pushd "${script_dir}/.." >>/dev/null
if [ -n "${CI}" ] && ! git whatchanged origin/master..HEAD "${dir}" | grep "${dir}" >>/dev/null; then
if ! git diff --name-only origin/master..HEAD ${dir} | grep ${dir}; then
echo "Not changes in ${dir}"
return
fi