Update packaging/tct-webpi.spec
authorjiehua.xiong <jiehuax.xiong@intel.com>
Thu, 5 Sep 2013 07:35:05 +0000 (15:35 +0800)
committerjiehua.xiong <jiehuax.xiong@intel.com>
Thu, 5 Sep 2013 07:35:05 +0000 (15:35 +0800)
Change-Id: I88622d98966e58aebd7488a9340d7429a70cc3ce

packaging/tct-webapi.spec

index 2f22470a87051254f422dc5c4182465d61debe6e..249d7a8bcac435072949089967429a810eb13641 100755 (executable)
@@ -5243,6 +5243,12 @@ if [ $? -eq 0 ]; then
         echo "Install /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt fail ..."
     fi
     sync
+    ###### cp upload.txt to /opt/usr/media/Documents for mediacapture testing ######
+    if [ -f /opt/tct-mediacapture-w3c-tests/mediacapture/support/upload.txt ]; then
+        cp -f /opt/tct-mediacapture-w3c-tests/mediacapture/support/upload.txt /opt/usr/media/Documents
+    else
+        echo "cp file fail, please check if exists file: /opt/tct-mediacapture-w3c-tests/mediacapture/support/upload.txt..."
+    fi
 fi
 
 %postun -n tct-mediacapture-w3c-tests
@@ -5273,6 +5279,10 @@ if [ $? -eq 0 ]; then
         fi
         sync
     fi
+    ###### remove upload.txt from /opt/usr/media/Documents after mediacapture testing ######
+    if [ -f /opt/usr/media/Documents/upload.txt ]; then
+        rm -f /opt/usr/media/Documents/upload.txt
+    fi
 fi
 
 rm -rf /opt/unpacked_crx/$SUB_PKG_NAME