[ITC][media-content][Non-ACR][Removed TestText.txt files and modified TC for media_in... 46/206746/2
authorPriya Kohli <priya.kohli@samsung.com>
Fri, 24 May 2019 06:35:16 +0000 (12:05 +0530)
committermanoj gupta <manoj.g2@samsung.com>
Fri, 24 May 2019 06:45:29 +0000 (06:45 +0000)
Change-Id: Ib6082caed7367c41bc6874886f4e730968fb15ba
Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
scripts_tpk/inst.sh
src/itc/media-content/ITs-media-content-info.c

index a6eade41412a90716a285d0f2c8ed3e34f21eac7..a5adcee7baf71c59a6e8c33c5f50ebe6bc1d9714 100755 (executable)
@@ -310,6 +310,12 @@ applist=`ls $DEVICE_SUITE_TARGET_30/res | grep tpk | cut -d '-' -f1`
     fi
     if [ -d $DEVICE_PHYSICAL_STORAGE_30/res ]; then
            rm -rf $DEVICE_PHYSICAL_STORAGE_30/res
+       fi
+       if [ -f $DEVICE_PHYSICAL_STORAGE_30/TestText.txt ]; then
+               rm -f $DEVICE_PHYSICAL_STORAGE_30/TestText.txt
+       fi
+       if [ -d $DEVICE_PHYSICAL_STORAGE_30/Text ]; then
+               rm -rf $DEVICE_PHYSICAL_STORAGE_30/Text
     fi
     if [ -d $DEVICE_PHYSICAL_STORAGE_30/P1 ]; then
            rm -rf $DEVICE_PHYSICAL_STORAGE_30/P1
index 92387b86a838baa9bd13fc49c90f1974b5f10a76..6daba83156fec2b9b93b10121718224695358a8b 100755 (executable)
@@ -2048,9 +2048,12 @@ int ITc_media_info_get_played_count_p(void)
 int ITc_media_info_move_to_db_p(void)
 {
        START_TEST_PLAYLIST;
-       AppendSlash(g_szInternalStoragePath, g_szFinalPath);
 
-       int nRet = media_info_move_to_db(g_hAudioInfo, g_szFinalPath);
+       RemoveFileInfo("audio");
+       int nRet = media_content_scan_file(g_szAudioPath);
+       PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet));
+
+       nRet = media_info_move_to_db(g_hAudioInfo, g_szAudioPath);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_move_to_db", MediaContentGetError(nRet));
 
        return 0;