Skip to content

Commit

Permalink
fix: clone the repo in the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand committed Jan 22, 2025
1 parent c81f561 commit fa26737
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fmt: kurtosis_fmt cli_fmt ## 🧹 Format all code

lint: kurtosis_lint cli_lint ## 🧹 Lint all code

test: ## 🧪 Run tests
test: examples/hello-world-avs ## 🧪 Run tests
# NOTE: we do this to avoid race conditions in the engine initialization
kurtosis engine start

Expand Down
7 changes: 2 additions & 5 deletions src/cmds/start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package cmds_test
import (
"context"
"os"
"os/exec"
"path/filepath"
"testing"

Expand Down Expand Up @@ -60,11 +59,9 @@ func TestStartIncredibleSquaring(t *testing.T) {
}

func TestStartLocalHelloWorld(t *testing.T) {
// Check that the Hello World AVS repo was downloaded
require.DirExists(t, filepath.Join(examplesDir, "hello-world-avs"), "Hello World AVS repo not found")
t.Parallel()
// Clone the hello-world-avs repo
err := exec.Command("sh", "-s", "cd "+rootDir+" && make examples/hello-world-avs").Run()
require.NoError(t, err, "Failed to make hello-world-avs repo")

configFile := filepath.Join(examplesDir, "hello_world_local.yaml")
devnetConfig, err := config.LoadFromPath(configFile)
require.NoError(t, err, "Failed to parse example config")
Expand Down

0 comments on commit fa26737

Please sign in to comment.