Skip to content

Commit fe36bce

Browse files
committed
add debug logf
1 parent aed837f commit fe36bce

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

integration/bundle/init_default_python_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"encoding/json"
66
"os"
7+
"os/exec"
78
"path/filepath"
89
"strings"
910
"testing"
@@ -55,6 +56,17 @@ func setupPython(t testutil.TestingT, ctx context.Context, directory, pythonVers
5556
pythonExe, err := python.DetectExecutable(ctx)
5657
require.NoError(t, err)
5758

59+
t.Logf("pythonExe=%s", pythonExe)
60+
61+
p, err := exec.LookPath("python3")
62+
t.Logf("python3 lookup=%s %s", p, err)
63+
64+
p, err = exec.LookPath("python")
65+
t.Logf("python lookup=%s %s", p, err)
66+
67+
p, err = exec.LookPath("python.exe")
68+
t.Logf("python.exe lookup=%s %s", p, err)
69+
5870
actualVersion := testutil.CaptureCommandOutput(t, pythonExe, "--version")
5971
expectVersion := "Python " + pythonVersion
6072
require.True(t, strings.HasPrefix(actualVersion, expectVersion), "Running %s --version: Expected %v, got %v", pythonExe, expectVersion, actualVersion)

0 commit comments

Comments
 (0)