Add shell=True to make sure that sdb does exist 11/112611/1
authorDonghoon Shin <dhs.shin@samsung.com>
Thu, 2 Feb 2017 03:59:37 +0000 (12:59 +0900)
committerDonghoon Shin <dhs.shin@samsung.com>
Thu, 2 Feb 2017 03:59:42 +0000 (12:59 +0900)
Change-Id: Ia830730023ec7280fef57b54985e5163ee9722e6

README.md
litmus/cmds/__init__.py

index 3c58688..0887180 100644 (file)
--- 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
index 6fa3183..f5b387b 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