Fix Docker tests to achieve 100% on 2/3 installation methods

Major fixes:
- Fixed Claude Code verification (was checking 'claude-code', now checks 'claude')
- Fixed volume mount paths (use absolute path /tmp/claude-repo for runtime)
- Fixed agents copy path (removed incorrect /agents/ subdirectory)
- Fixed critical agent paths (studio-coach in bonus/, not project-management)
- Added expect package for interactive installer automation
- Fixed test count aggregation to read from individual result files

Test Results (after fixes):
 Manual Installation: 27/27 passing (100%)
 Master Prompt Installation: 15/15 passing (100%)
⚠️  Interactive Installer: 7/13 passing (54% - expect automation issue)

Note: Interactive installer works fine for manual testing, just difficult
to automate with expect scripts due to prompt matching complexity.
This commit is contained in:
uroma
2026-01-16 10:54:31 +00:00
Unverified
parent 18fa867922
commit 8014ad0bcc
4 changed files with 21 additions and 26 deletions

View File

@@ -21,6 +21,7 @@ RUN apt-get update && apt-get install -y \
bash \
ca-certificates \
gnupg \
expect \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js 20.x from official NodeSource repository
@@ -39,8 +40,8 @@ RUN useradd -m -s /bin/bash testuser && \
WORKDIR /home/testuser
RUN chown -R testuser:testuser /home/testuser
# Copy repository files
COPY --chown=testuser:testuser ../../ /home/testuser/claude-code-glm-suite/
# Copy repository files (relative to build context)
COPY --chown=testuser:testuser ../../../ /home/testuser/claude-code-glm-suite/
# Switch to test user
USER testuser