Skip to content

Commit

Permalink
Update test-aocih.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lueFlake committed Oct 14, 2024
1 parent c799d9c commit 01f8be5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/metrics/test-aocih.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ stdout=$2

{
tmp=$(mktemp -d /tmp/XXXX)
"${LOCAL}/metrics/age_of_class.sh" "${tmp}/Test.java" "${temp}/stdout"
"${LOCAL}/metrics/aocih.sh" "${tmp}/Test.java" "${temp}/stdout"
grep -q "AoCiH 0 " "${temp}/stdout"
} > "${stdout}" 2>&1
echo "👍🏻 Didn't fail in non-git directory"
Expand All @@ -44,7 +44,7 @@ echo "👍🏻 Didn't fail in non-git directory"
git add "${java}"
git config commit.gpgsign false
git commit --quiet -am "Initial commit"
"${LOCAL}/metrics/age_of_class.sh" "${java}" stdout
"${LOCAL}/metrics/aocih.sh" "${java}" stdout
grep -qP "AoCiH [^0]" stdout
} > "${stdout}" 2>&1
echo "👍🏻 Correctly calculated AoCiH in the repository"

0 comments on commit 01f8be5

Please sign in to comment.