From ff04c162bd38c5a0b52a9e408be83563969c7bd1 Mon Sep 17 00:00:00 2001 From: Mike Place Date: Wed, 7 Sep 2016 14:32:47 +0900 Subject: [PATCH] Skip Ruby tests on exception in pre-req check --- tests/integration/modules/gem.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/integration/modules/gem.py b/tests/integration/modules/gem.py index 805ecfbe4d..c026b5f3d9 100644 --- a/tests/integration/modules/gem.py +++ b/tests/integration/modules/gem.py @@ -27,7 +27,10 @@ def check_status(): ''' Check the status of the rubygems source ''' - ret = salt.utils.http.query('https://rubygems.org', status=True) + try: + ret = salt.utils.http.query('https://rubygems.org', status=True) + except Exception: + return False return ret['status'] == 200