Skip to content

Commit 99e7f60

Browse files
authored
HBASE-23019 Handle --skip-errorprone on branch-1 (#620)
Signed-off-by: Sean Busbey <busbey@apache.org> Signed-off-by: Xu Cang <xcang@salesforce.com>
1 parent 72ea366 commit 99e7f60

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dev-support/hbase-personality.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ function personality_parse_args
9797
delete_parameter "${i}"
9898
HADOOP_PROFILE=${i#*=}
9999
;;
100+
--skip-errorprone)
101+
delete_parameter "${i}"
102+
SKIP_ERRORPRONE=true
103+
;;
100104
esac
101105
done
102106
}
@@ -168,9 +172,9 @@ function personality_modules
168172
return
169173
fi
170174

171-
# if [[ ${testtype} == compile ]]; then
172-
# extra="${extra} -PerrorProne"
173-
# fi
175+
if [[ ${testtype} == compile ]] && [[ "${SKIP_ERRORPRONE}" != "true" ]]; then
176+
extra="${extra} -PerrorProne"
177+
fi
174178

175179
# If EXCLUDE_TESTS_URL/INCLUDE_TESTS_URL is set, fetches the url
176180
# and sets -Dtest.exclude.pattern/-Dtest to exclude/include the

0 commit comments

Comments
 (0)