testing: report reason why rclone test is being skipped

This commit is contained in:
Jarek Kowalski
2021-09-08 20:15:48 -07:00
parent 7e68d8e4c1
commit 0d3c8cfd85

View File

@@ -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)
}
}