diff options
author | Donghoon Shin <dhs.shin@samsung.com> | 2017-02-02 12:59:37 +0900 |
---|---|---|
committer | Donghoon Shin <dhs.shin@samsung.com> | 2017-02-02 12:59:42 +0900 |
commit | 9e6d5e6c890b4d4a8068ce01a105861c9e16116f (patch) | |
tree | e94a4674f0b799be14778018c37f3ffb4508ef35 | |
parent | aac1e6264c540bec928493b8ca7ff0cb115556a6 (diff) | |
download | litmus-9e6d5e6c890b4d4a8068ce01a105861c9e16116f.tar.gz litmus-9e6d5e6c890b4d4a8068ce01a105861c9e16116f.tar.bz2 litmus-9e6d5e6c890b4d4a8068ce01a105861c9e16116f.zip |
Add shell=True to make sure that sdb does exist
Change-Id: Ia830730023ec7280fef57b54985e5163ee9722e6
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | litmus/cmds/__init__.py | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -17,10 +17,10 @@ Install sdb from tizen sdk or download binary from below url. Unzip this package and copy sdb binary to /usr/bin $ wget http://download.tizen.org/sdk/tizenstudio/official/binary/sdb_2.3.0_ubuntu-64.zip \ - && unzip sdb_2.3.0_ubuntu-64.zip -d ~/temp \ - && cp ~/temp/data/tools/sdb /usr/bin \ + && unzip sdb_2.3.0_ubuntu-64.zip -d ./temp \ + && sudo cp ./temp/data/tools/sdb /usr/bin \ && rm -f sdb_2.3.0_ubuntu-64.zip \ - && rm -rf ~/temp + && rm -rf ./temp # Buliding & installing diff --git a/litmus/cmds/__init__.py b/litmus/cmds/__init__.py index 6fa3183..f5b387b 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', timeout=10) + call('sdb version', shell=True, timeout=10) except FileNotFoundError: raise Exception('Please install sdb. Refer to {}'.format(help_url)) return |