You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2022/05/06 21:12:56 UTC

[libcloud] 03/05: Supply reason for pytest exit

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 5acbf4ba110be62b4842222cfada8b48fb3c7d51
Author: Veith Röthlingshöfer <ve...@understand.ai>
AuthorDate: Thu May 5 15:32:38 2022 +0200

    Supply reason for pytest exit
---
 libcloud/test/conftest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libcloud/test/conftest.py b/libcloud/test/conftest.py
index 53b941c6e..c0a73bfd8 100644
--- a/libcloud/test/conftest.py
+++ b/libcloud/test/conftest.py
@@ -28,7 +28,7 @@ def pytest_configure(config):
         print("Missing " + secrets_current)
         print("Maybe you forgot to copy it from -dist:")
         print("cp libcloud/test/secrets.py-dist libcloud/test/secrets.py")
-        pytest.exit("")
+        pytest.exit(reason="Secrets file missing")
 
     mtime_current = os.path.getmtime(secrets_current)
     mtime_dist = os.path.getmtime(secrets_dist)
@@ -39,4 +39,4 @@ def pytest_configure(config):
             "Please copy the new secrets.py-dist file over otherwise"
             + " tests might fail"
         )
-        pytest.exit("")
+        pytest.exit(reason="Secrets file out of date")