Report errors to stderr for tests
This commit is contained in:
parent
5dd137d53e
commit
db16702263
1 changed files with 4 additions and 2 deletions
|
@ -50,13 +50,15 @@ func init() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
args := []string{"-e"}
|
||||||
|
|
||||||
test.CreateFn = func() (backend.Backend, error) {
|
test.CreateFn = func() (backend.Backend, error) {
|
||||||
err := createTempdir()
|
err := createTempdir()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return sftp.Create(tempBackendDir, sftpserver)
|
return sftp.Create(tempBackendDir, sftpserver, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
test.OpenFn = func() (backend.Backend, error) {
|
test.OpenFn = func() (backend.Backend, error) {
|
||||||
|
@ -64,7 +66,7 @@ func init() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return sftp.Open(tempBackendDir, sftpserver)
|
return sftp.Open(tempBackendDir, sftpserver, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
test.CleanupFn = func() error {
|
test.CleanupFn = func() error {
|
||||||
|
|
Loading…
Reference in a new issue