From 3840b8fa7591ab304125ed7713ae93b341b07418 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sat, 22 Dec 2018 04:48:54 +0200 Subject: [PATCH] test: gc: skip if key file does not exist Signed-off-by: Ruslan Kuprieiev --- tests/test_data_cloud.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_data_cloud.py b/tests/test_data_cloud.py index 4b94f6407..35b627de7 100644 --- a/tests/test_data_cloud.py +++ b/tests/test_data_cloud.py @@ -42,6 +42,9 @@ def _should_test_gcp(): if os.getenv("DVC_TEST_GCP") == "true": return True + if not os.path.exists(TestDvc.GCP_CREDS_FILE): + return False + creds = os.getenv("GOOGLE_APPLICATION_CREDENTIALS") if creds and os.getenv("GCP_CREDS"): if os.path.exists(creds):