summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonghoon Shin <dhs.shin@samsung.com>2017-02-02 12:59:37 +0900
committerDonghoon Shin <dhs.shin@samsung.com>2017-02-02 12:59:42 +0900
commit9e6d5e6c890b4d4a8068ce01a105861c9e16116f (patch)
treee94a4674f0b799be14778018c37f3ffb4508ef35
parentaac1e6264c540bec928493b8ca7ff0cb115556a6 (diff)
downloadlitmus-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.md6
-rw-r--r--litmus/cmds/__init__.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 3c58688..0887180 100644
--- a/README.md
+++ b/README.md
@@ -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