@@ -29,7 +29,7 @@ import (
29
29
func (i * InstanceInfo ) UploadAndRun (archivePath , remoteWorkspace , driverRunCmd string ) (int , error ) {
30
30
31
31
// Create the temp staging directory
32
- klog .Infof ("Staging test binaries on %q" , i .cfg .Name )
32
+ klog .V ( 4 ). Infof ("Staging test binaries on %q" , i .cfg .Name )
33
33
34
34
// Do not sudo here, so that we can use scp to copy test archive to the directdory.
35
35
if output , err := i .SSHNoSudo ("mkdir" , remoteWorkspace ); err != nil {
@@ -49,15 +49,15 @@ func (i *InstanceInfo) UploadAndRun(archivePath, remoteWorkspace, driverRunCmd s
49
49
fmt .Sprintf ("cd %s" , remoteWorkspace ),
50
50
fmt .Sprintf ("tar -xzvf ./%s" , archiveName ),
51
51
)
52
- klog .Infof ("Extracting tar on %q" , i .cfg .Name )
52
+ klog .V ( 4 ). Infof ("Extracting tar on %q" , i .cfg .Name )
53
53
// Do not use sudo here, because `sudo tar -x` will recover the file ownership inside the tar ball, but
54
54
// we want the extracted files to be owned by the current user.
55
55
if output , err := i .SSHNoSudo ("sh" , "-c" , cmd ); err != nil {
56
56
// Exit failure with the error
57
57
return - 1 , fmt .Errorf ("failed to extract test archive: %v, output: %q" , err .Error (), output )
58
58
}
59
59
60
- klog .Infof ("Starting driver on %q" , i .cfg .Name )
60
+ klog .V ( 4 ). Infof ("Starting driver on %q" , i .cfg .Name )
61
61
// When the process is killed the driver should close the TCP endpoint, then we want to download the logs
62
62
output , err := i .SSH (driverRunCmd )
63
63
if err != nil {
0 commit comments