Skip to content

Commit

Permalink
Update repo dir as absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-guo committed Feb 3, 2025
1 parent b4fe886 commit 5442a42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/getSHAs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 5442a42

Please # to comment.