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 01f8be5 commit 6633d7a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/metrics/test-aocih.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ echo "👍🏻 Didn't fail in non-git directory"
git init --quiet .
git config user.email '[email protected]'
git config user.name 'Foo'
git config commit.gpgsign false
touch empty.file
git add "empty.file"
git commit --quiet -am "Initial commit"
java="Test.java"
echo "class Foo {}" > "${java}"
git add "${java}"
git config commit.gpgsign false
git commit --quiet -am "Initial commit"
git commit --quiet -am "Second commit"
git commit --amend --no-edit --date="$(date -d "+1 hour" --rfc-2822)"
"${LOCAL}/metrics/aocih.sh" "${java}" stdout
grep -qP "AoCiH [^0]" stdout
} > "${stdout}" 2>&1
Expand Down

0 comments on commit 6633d7a

Please sign in to comment.