From: Donghoon Shin Date: Thu, 16 Feb 2017 06:33:49 +0000 (+0900) Subject: Raise exception if sdb does not exist X-Git-Tag: upstream/0.3.5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5fc02e333219a787dfb5fe5a505546a018afd1b;p=tools%2Flitmus.git Raise exception if sdb does not exist Change-Id: Ib0b756bdf3bdd9247c54b2eea1324094ea203b6c --- 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