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
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