Skip to content

Commit bc8defa

Browse files
julianKatzcemakd
authored andcommitted
Improved some error messages to provide better test failure feedback
1 parent 042176a commit bc8defa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/remote/setup-teardown.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func SetupNewDriverAndClient(instance *InstanceInfo, config *ClientConfig) (*Tes
7373
archiveName := fmt.Sprintf("e2e_driver_binaries_%s.tar.gz", uuid.NewUUID())
7474
archivePath, err := CreateDriverArchive(archiveName, instance.cfg.Architecture, config.PkgPath, config.BinPath)
7575
if err != nil {
76-
return nil, err
76+
return nil, fmt.Errorf("failed to create driver archive: %v", err.Error())
7777
}
7878
defer func() {
7979
err = os.Remove(archivePath)
@@ -92,7 +92,7 @@ func SetupNewDriverAndClient(instance *InstanceInfo, config *ClientConfig) (*Tes
9292
// Upload archive to instance and run binaries
9393
driverPID, err := instance.UploadAndRun(archivePath, config.WorkspaceDir, config.RunDriverCmd)
9494
if err != nil {
95-
return nil, err
95+
return nil, fmt.Errorf("failed to upload and run driver: %v", err.Error())
9696
}
9797

9898
// Create an SSH tunnel from port to port

0 commit comments

Comments
 (0)