From 1c23a4e40a1af5c5b76ea4b3c57aabc44862c63d Mon Sep 17 00:00:00 2001 From: Richard Antal Date: Wed, 13 Jul 2022 15:58:35 +0200 Subject: [PATCH] PHOENIX-6745 Fix run-source-ratcheck.sh script Change-Id: I05ea9eaeb53510bbd276f7b3925abd6b329af3ee --- python-phoenixdb/dev-support/rat-excludes.txt | 2 ++ .../dev-support/run-source-ratcheck.sh | 14 ++++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/python-phoenixdb/dev-support/rat-excludes.txt b/python-phoenixdb/dev-support/rat-excludes.txt index d96d387..8d30494 100644 --- a/python-phoenixdb/dev-support/rat-excludes.txt +++ b/python-phoenixdb/dev-support/rat-excludes.txt @@ -2,3 +2,5 @@ NEWS\.rst RELEASING\.rst README\.rst +dev-support.* +\.gitignore \ No newline at end of file diff --git a/python-phoenixdb/dev-support/run-source-ratcheck.sh b/python-phoenixdb/dev-support/run-source-ratcheck.sh index de9b72f..39f28ca 100755 --- a/python-phoenixdb/dev-support/run-source-ratcheck.sh +++ b/python-phoenixdb/dev-support/run-source-ratcheck.sh @@ -53,11 +53,9 @@ fi echo "RAT binary installation localized, running RAT check" # Run the RAT check, excluding pyc files -for src in 'phoenixdb' 'ci' 'examples' 'doc'; do - echo "Running RAT check over $src" - java -jar "$ARTIFACTS_DIR/$RAT_BINARY_DIR/$RAT_JAR" -d "$DEV_SUPPORT/../$src" -E "$DEV_SUPPORT/rat-excludes.txt" - if [[ $? -ne 0 ]]; then - echo "Failed RAT check over $src" - exit 1 - fi -done +echo "Running RAT check" +java -jar "$ARTIFACTS_DIR/$RAT_BINARY_DIR/$RAT_JAR" -d "$DEV_SUPPORT/../" -E "$DEV_SUPPORT/rat-excludes.txt" +if [[ $? -ne 0 ]]; then + echo "Failed RAT check" + exit 1 +fi