Fix for smoke tests 51/111651/2
authorBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Mon, 23 Jan 2017 08:21:18 +0000 (09:21 +0100)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Tue, 31 Jan 2017 13:12:38 +0000 (05:12 -0800)
 - SmokeTest.InstallExternal_Tpk
 - SmokeTest.MigrateLegacyExternalImage_Tpk

Above test throws an exception when in device there
is no SD Card. This patch repairs it.

Change-Id: Ia535ac072231e69bf131c76e12dde28cc988e6f8

src/unit_tests/smoke_test.cc

index d7fc48f..f2b006e 100644 (file)
@@ -346,7 +346,7 @@ ci::AppInstaller::Result Install(const bf::path& path,
 bool CheckAvailableExternalPath() {
   bf::path ext_mount_path = ci::GetExternalCardPath();
   LOG(DEBUG) << "ext_mount_path :" << ext_mount_path;
-  if (bf::is_empty(ext_mount_path)) {
+  if (ext_mount_path.empty()) {
     LOG(ERROR) << "Sdcard not exists!";
     return false;
   }