Skip to content

Commit e03cdbd

Browse files
committed
use more lib.sh
1 parent 33ef870 commit e03cdbd

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

scripts/aitest.sh

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
88
# Check required dependencies
99
dependencies claude gotestsum awk go
1010

11+
# Ensure we're in the project root
12+
cdroot
13+
1114
# Default timeout in seconds (10 minutes)
1215
TIMEOUT=${1:-600}
1316
MAX_ITERATIONS=10
@@ -30,21 +33,11 @@ cleanup() {
3033
# Set up cleanup on exit
3134
trap cleanup EXIT
3235

33-
# Colors for output
34-
RED='\033[0;31m'
36+
# Colors for output (keeping these for success/warn which lib.sh doesn't have)
3537
GREEN='\033[0;32m'
3638
YELLOW='\033[1;33m'
37-
BLUE='\033[0;34m'
3839
NC='\033[0m' # No Color
3940

40-
log() {
41-
echo -e "${BLUE}[aitest]${NC} $1" >&2
42-
}
43-
44-
error() {
45-
echo -e "${RED}[aitest ERROR]${NC} $1" >&2
46-
}
47-
4841
success() {
4942
echo -e "${GREEN}[aitest SUCCESS]${NC} $1" >&2
5043
}

0 commit comments

Comments
 (0)