From 9c076805bdbc729cde78da6c13ad0a0578900a66 Mon Sep 17 00:00:00 2001 From: Bartlomiej Kunikowski Date: Thu, 12 Jan 2017 16:10:38 +0100 Subject: [PATCH] Fix for smoke tests - 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unit_tests/smoke_test.cc b/src/unit_tests/smoke_test.cc index bbcc1ec..66ca801 100644 --- a/src/unit_tests/smoke_test.cc +++ b/src/unit_tests/smoke_test.cc @@ -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; } -- 2.7.4