Fix for smoke tests 65/110465/1
authorBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Thu, 12 Jan 2017 15:10:38 +0000 (16:10 +0100)
committerBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Mon, 16 Jan 2017 13:57:28 +0000 (14:57 +0100)
 - SmokeTest.InstallExternalMode
 - SmokeTest.MigrateLegacyExternalImageMode

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

Change-Id: Id7e9e6da3b79193005818b5c84c20bc5f886bc8f

src/unit_tests/smoke_test.cc

index bbcc1ec..66ca801 100644 (file)
@@ -430,7 +430,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;
   }