Skip to content

Commit 4d931b6

Browse files
committed
add logs for testing
1 parent f5071fa commit 4d931b6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/e2e/utils/utils.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func GCEClientAndDriverSetup(instance *remote.InstanceInfo, computeEndpoint stri
5353
binPath := path.Join(pkgPath, "bin/gce-pd-csi-driver")
5454

5555
endpoint := fmt.Sprintf("tcp://localhost:%s", port)
56+
klog.Infof("ENDPOINT: %s", endpoint)
5657
extra_flags := []string{
5758
fmt.Sprintf("--extra-labels=%s=%s", DiskLabelKey, DiskLabelValue),
5859
"--max-concurrent-format-and-mount=20", // otherwise the serialization times out the e2e test.
@@ -65,7 +66,7 @@ func GCEClientAndDriverSetup(instance *remote.InstanceInfo, computeEndpoint stri
6566
// useful to see what's happening when debugging tests.
6667
driverRunCmd := fmt.Sprintf("sh -c '/usr/bin/nohup %s/gce-pd-csi-driver -v=6 --endpoint=%s %s 2> %s/prog.out < /dev/null > /dev/null &'",
6768
workspace, endpoint, strings.Join(extra_flags, " "), workspace)
68-
69+
klog.Infof("DRIVER COMMAND %s", driverRunCmd)
6970
config := &remote.ClientConfig{
7071
PkgPath: pkgPath,
7172
BinPath: binPath,

test/remote/runner.go

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func (i *InstanceInfo) UploadAndRun(archivePath, remoteWorkspace, driverRunCmd s
5959

6060
klog.V(4).Infof("Starting driver on %q", i.name)
6161
// When the process is killed the driver should close the TCP endpoint, then we want to download the logs
62+
klog.Infof("DRIVER RUN COMMAND: %s", driverRunCmd)
6263
output, err := i.SSH(driverRunCmd)
6364
if err != nil {
6465
// Exit failure with the error

0 commit comments

Comments
 (0)