From ebbbaf9dec3600eca789f9a2555dd01948f340ba Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Thu, 18 Jun 2020 10:56:55 +0900 Subject: [PATCH] Create empty directory when running backup in smoke test When run test with empty directory, there is posibility causing error - Multi install case : installer can't create unified recovery file Change-Id: Ifba13001ed047d54aa941bdbd694c85bab73f3a8 Signed-off-by: Ilho Kim --- src/unit_tests/common/smoke_utils.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unit_tests/common/smoke_utils.cc b/src/unit_tests/common/smoke_utils.cc index 31ff71a5..73f8398f 100644 --- a/src/unit_tests/common/smoke_utils.cc +++ b/src/unit_tests/common/smoke_utils.cc @@ -1369,6 +1369,8 @@ bool BackupPath(const bf::path& path) { return false; } assert(!error); + if (bf::is_directory(backup_path)) + bf::create_directory(path); } return true; } -- 2.34.1