From 5442a42d0d8c702f3582d53e487dab8e8fd822ae Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Mon, 3 Feb 2025 12:51:48 -0500 Subject: [PATCH] Update repo dir as absolute path --- scripts/getSHAs.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/getSHAs.sh b/scripts/getSHAs.sh index 49016117..43f05c7a 100755 --- a/scripts/getSHAs.sh +++ b/scripts/getSHAs.sh @@ -64,7 +64,7 @@ getSHAs() # Get SHA for non-external tests by find .git dir cd "$TEST_ROOT" || exit find "$TEST_ROOT" -type d -name ".git" | while read -r gitDir; do - repoDir=$(dirname "$gitDir") + repoDir=$(realpath "$(dirname "$gitDir")") cd "$repoDir" || continue # append the info into $SHAs_FILR { echo "================================================"; echo "timestamp: $(timestamp)"; echo "repo dir: $repoDir"; echo "git repo: "; git remote show origin -n | grep "Fetch URL:"; echo "sha:"; git rev-parse HEAD; } 2>&1 | tee -a "$SHAs_FILE" @@ -75,7 +75,6 @@ getSHAs() if [[ "$BUILD_LIST" == *"external"* ]]; then for subDir in "$TEST_ROOT"/external/*/; do echo "subdir is $subDir" - ls "$subDir" find "$subDir" -type f -name 'Dockerfile.*' if [[ $(find "$subDir" -type f -name 'Dockerfile.*') ]]; then propertiesFile="$subDir/test.properties"