File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ make O=$output_dir $build_flags -C tools/testing/selftests/ \
5555
5656incumbent=$( grep -i -c " \(warn\|error\)" $tmpfile_o )
5757
58+ pr " Checking if tree is clean"
59+ git status -s 1>&2
60+ incumbent_dirt=$( git status -s | grep -c ' ^??' )
61+
5862pr " Building the tree with the patch"
5963git checkout -q $HEAD
6064
@@ -64,7 +68,11 @@ make O=$output_dir $build_flags -C tools/testing/selftests/ \
6468
6569current=$( grep -i -c " \(warn\|error\)" $tmpfile_n )
6670
67- echo " Errors and warnings before: $incumbent this patch: $current " >& $DESC_FD
71+ pr " Checking if tree is clean"
72+ git status -s 1>&2
73+ current_dirt=$( git status -s | grep -c ' ^??' )
74+
75+ echo " Errors and warnings before: $incumbent (+$incumbent_dirt ) this patch: $current (+$current_dirt )" >& $DESC_FD
6876
6977if [ $current -gt $incumbent ]; then
7078 echo " New errors added" 1>&2
@@ -85,6 +93,12 @@ if [ $current -gt $incumbent ]; then
8593 rc=1
8694fi
8795
96+ if [ $current_dirt -gt $incumbent_dirt ]; then
97+ echo " New untracked files added" 1>&2
98+
99+ rc=1
100+ fi
101+
88102rm $tmpfile_o $tmpfile_n
89103
90104exit $rc
You can’t perform that action at this time.
0 commit comments