mirror of
https://github.com/kopia/kopia.git
synced 2026-10-24 15:18:48 -04:00
testing: report reason why rclone test is being skipped
This commit is contained in:
1 parent
7e68d8e4c1
commit
0d3c8cfd85
1 file changed
+2
-2
@@ -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