Skip to content

Commit

Permalink
PMM-12078 Fix starlark test.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Jul 21, 2023
1 parent d86b64b commit 13ed0d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions managed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ release: ## Build pmm-managed release binaries
env CGO_ENABLED=0 go build -v $(PMM_LD_FLAGS) -o $(PMM_RELEASE_PATH)/ ./cmd/...
$(PMM_RELEASE_PATH)/pmm-managed --version

release-starlark:
env CGO_ENABLED=0 go build -v $(PMM_LD_FLAGS) -o $(PMM_RELEASE_PATH)/ ./cmd/pmm-managed-starlark/...
$(PMM_RELEASE_PATH)/pmm-managed-starlark --version

ARCH=$(shell uname -m)
release-dev: ## Build pmm-managed binaries for development
if [ $(ARCH) = "aarch64" ]; then \
Expand Down
2 changes: 1 addition & 1 deletion managed/cmd/pmm-managed-starlark/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func TestStarlarkSandbox(t *testing.T) { //nolint:tparallel
ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second)
t.Cleanup(cancel)
// since we run the binary as a child process to test it we need to build it first.
command := exec.CommandContext(ctx, "make", "-C", "../..", "release")
command := exec.CommandContext(ctx, "make", "-C", "../..", "release-starlark")
command.Stdout = os.Stdout
command.Stderr = os.Stderr
err := command.Run()
Expand Down

0 comments on commit 13ed0d3

Please sign in to comment.