mirror of
https://github.com/kopia/kopia.git
synced 2026-05-18 11:44:36 -04:00
testing: report reason why rclone test is being skipped
This commit is contained in:
@@ -40,10 +40,10 @@ func mustGetRcloneExeOrSkip(t *testing.T) string {
|
||||
|
||||
if err := exec.Command(rcloneExe, "version").Run(); err != nil {
|
||||
if os.Getenv("CI") == "" {
|
||||
t.Skip("rclone not installed")
|
||||
t.Skipf("rclone not installed: %v", err)
|
||||
} else {
|
||||
// on CI fail hard
|
||||
t.Fatal("rclone not installed")
|
||||
t.Fatalf("rclone not installed: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user