summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonghoon Shin <dhs.shine@gmail.com>2017-02-16 15:28:00 +0900
committerDonghoon Shin <dhs.shine@gmail.com>2017-02-16 15:28:00 +0900
commit0d98a1c9b2682dde45196c8a3c8e89738aa3ab2a (patch)
tree1c8908a2f55659330165906cf8b38ec69cc5f798
parent63041918a865e5fec64e06ae7e178ce63d9e7c2b (diff)
downloadlitmus-0d98a1c9b2682dde45196c8a3c8e89738aa3ab2a.tar.gz
litmus-0d98a1c9b2682dde45196c8a3c8e89738aa3ab2a.tar.bz2
litmus-0d98a1c9b2682dde45196c8a3c8e89738aa3ab2a.zip
Raise exception if sdb does not exist0.3.5
-rw-r--r--litmus/cmds/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/litmus/cmds/__init__.py b/litmus/cmds/__init__.py
index f5b387b..1053c24 100644
--- a/litmus/cmds/__init__.py
+++ b/litmus/cmds/__init__.py
@@ -32,7 +32,7 @@ def load_project_list(projects):
def sdb_does_exist():
help_url = 'https://github.com/dhs-shine/litmus#prerequisite'
try:
- call('sdb version', shell=True, timeout=10)
+ call(['sdb', 'version'], timeout=10)
except FileNotFoundError:
raise Exception('Please install sdb. Refer to {}'.format(help_url))
return