Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions test/e2e/vm_interactive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,7 @@ func TestVM_Interactive_InstallScript(t *testing.T) {
}

vm := testutil.NewMacHost(t)

// This test exercises install.sh's reinstall prompt, which requires openboot
// to be registered with Homebrew (`brew list openboot`). Skip if the formula
// isn't available — that means we're in a pre-release CI environment where
// the tap has no published formula yet.
tapScript := fmt.Sprintf(
"export PATH=%q && brew tap openbootdotdev/openboot 2>/dev/null; brew info openboot &>/dev/null",
brewPath,
)
if _, err := vm.Run(tapScript); err != nil {
t.Skip("openboot Homebrew formula not available — skipping brew-dependent interactive test")
}
vmInstallViaBrew(t, vm) // Install first (no TTY required)
vmInstallViaBrew(t, vm) // taps openbootdotdev/openboot and installs openboot

// expect is required for interactive tests.
if _, err := vm.Run(fmt.Sprintf("export PATH=%q && command -v expect", brewPath)); err != nil {
Expand Down
7 changes: 7 additions & 0 deletions test/e2e/vm_user_journey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package e2e

import (
"fmt"
"strings"
"testing"

Expand All @@ -40,6 +41,12 @@ func TestVM_Journey_FirstTimeUser(t *testing.T) {

vm := testutil.NewMacHost(t)
vmInstallHomebrew(t, vm)
// Uninstall the minimal preset packages so openboot actually installs them
// rather than finding them pre-installed on the GHA runner image.
vm.Run(fmt.Sprintf(
"export PATH=%q && brew uninstall --ignore-dependencies jq ripgrep fd bat fzf htop tree gh 2>/dev/null || true",
brewPath,
))
bin := vmCopyDevBinary(t, vm)

// Step 1: openboot shouldn't leak in from a prior step.
Expand Down
Loading