summaryrefslogtreecommitdiffhomepage
path: root/test/unit/applications/lang/go.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/unit/applications/lang/go.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/applications/lang/go.py b/test/unit/applications/lang/go.py
index 04af26e1..3db955f3 100644
--- a/test/unit/applications/lang/go.py
+++ b/test/unit/applications/lang/go.py
@@ -9,6 +9,11 @@ from unit.option import option
class TestApplicationGo(TestApplicationProto):
@staticmethod
def prepare_env(script, name='app', static=False):
+ try:
+ subprocess.check_output(['which', 'go'])
+ except subprocess.CalledProcessError:
+ return None
+
temp_dir = option.temp_dir + '/go/'
if not os.path.exists(temp_dir):