Add shell=True to make sure that sdb does exist
authorDonghoon Shin <dhs.shine@gmail.com>
Thu, 2 Feb 2017 03:58:30 +0000 (12:58 +0900)
committerDonghoon Shin <dhs.shine@gmail.com>
Thu, 2 Feb 2017 03:58:30 +0000 (12:58 +0900)
litmus/cmds/__init__.py

index 6fa318332a292e94b922852500c045d42b83c9c7..f5b387b9cdfecf07be6970b145833d9e5a83b209 100644 (file)
@@ -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', timeout=10)
+        call('sdb version', shell=True, timeout=10)
     except FileNotFoundError:
         raise Exception('Please install sdb. Refer to {}'.format(help_url))
     return