From 341b57b6eeddf670e605a11889d9f8f98ad97ca2 Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Tue, 18 Feb 2020 09:10:40 +0900 Subject: [PATCH] Fix smoke test Recovery check routine changed after the recovery file is created Change-Id: Ie3641e07104ba1f4bc6e3ee7d7a6dc1396a3ed5d Signed-off-by: Ilho Kim --- src/unit_tests/extensive_smoke_test.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/unit_tests/extensive_smoke_test.cc b/src/unit_tests/extensive_smoke_test.cc index 07ba429..7d6afdb 100644 --- a/src/unit_tests/extensive_smoke_test.cc +++ b/src/unit_tests/extensive_smoke_test.cc @@ -135,7 +135,7 @@ TEST_F(SmokeTest, RecoveryMode_Tpk_Installation) { std::vector args = {"", "-i", path.c_str(), "-u", test_uid_str.c_str()}; backend.CrashAfterEachStep(&args, [&](int step) -> bool { - if (step >= 1) { + if (step >= 2) { bf::path recovery_file = FindRecoveryFile("/tpk-recovery", params.test_user.uid); EXTENDED_ASSERT_FALSE(recovery_file.empty()); @@ -158,7 +158,7 @@ TEST_F(SmokeTest, RecoveryMode_Tpk_Update) { std::vector args = {"", "-i", path_new.string(), "-u", test_uid_str.c_str()}; backend.CrashAfterEachStep(&args, [&](int step) -> bool { - if (step >= 1) { + if (step >= 2) { std::string pkgid = "smokeapp16"; std::string appid = "smokeapp16.RecoveryModeTpkUpdate"; std::string exec = "native"; @@ -301,7 +301,7 @@ TEST_F(SmokeTest, RecoveryMode_ForDelta) { std::vector args = {"", "-i", path_new.string(), "-u", test_uid_str.c_str()}; backend.CrashAfterEachStep(&args, [&](int step) -> bool { - if (step >= 1) { + if (step >= 2) { std::string pkgid = "smoketpk35"; std::string appid = "smoketpk35.RecoveryMode_ForDelta"; std::string exec = "smoketpk35"; @@ -351,7 +351,7 @@ TEST_F(SmokeTest, RecoveryMode_ForMountInstall) { std::vector args = {"", "-w", path.string(), "-u", test_uid_str.c_str()}; backend.CrashAfterEachStep(&args, [&](int step) -> bool { - if (step >= 1) { + if (step >= 2) { std::string pkgid = "smoketpk37"; std::string appid = "smoketpk37.RecoveryMode_ForMountInstall"; bf::path recovery_file = FindRecoveryFile("/tpk-recovery", @@ -377,7 +377,7 @@ TEST_F(SmokeTest, RecoveryMode_ForMountUpdate) { std::vector args = {"", "-w", path_new.string(), "-u", test_uid_str.c_str()}; backend.CrashAfterEachStep(&args, [&](int step) -> bool { - if (step >= 1) { + if (step >= 2) { std::string pkgid = "smoketpk38"; std::string appid = "smoketpk38.RecoveryMode_ForMountUpdate"; std::string exec = "smoketpk38"; -- 2.7.4