From 1a818e18366bf6f4b08400d63f45c22168192a1e Mon Sep 17 00:00:00 2001 From: Bartlomiej Kunikowski Date: Mon, 23 Jan 2017 09:21:18 +0100 Subject: [PATCH] Fix for smoke tests - 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 | 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 d7fc48f..f2b006e 100644 --- a/src/unit_tests/smoke_test.cc +++ b/src/unit_tests/smoke_test.cc @@ -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; } -- 2.7.4