Check end-of-line style
diff --git a/tests/tests.sh b/tests/tests.sh
index 4fe94fe..8870a34 100644
--- a/tests/tests.sh
+++ b/tests/tests.sh
@@ -37,7 +37,6 @@
 	#Ensure the overloaded properties exist in AOSP
 	find "$folder" -name \*.xml |while read xml;do
 		keys="$(xmlstarlet sel -t -m '//resources/*' -v @name -n $xml)"
-
 		for key in $keys;do
 			grep -qE '^'$key'$' tests/knownKeys && continue
 			#Run the ag only on phh's machine. Assume that knownKeys is full enough.
@@ -52,4 +51,10 @@
 done
 rm -f tests/priorities
 
+if find -name \*.xml |xargs dos2unix -ic |grep -qE .;then
+	echo "The following files have dos end of lines"
+	find -name \*.xml |xargs dos2unix -ic
+	result=1
+fi
+
 exit $result