Fix smoke test 50/225150/2
authorIlho Kim <ilho159.kim@samsung.com>
Tue, 18 Feb 2020 00:10:40 +0000 (09:10 +0900)
committerilho kim <ilho159.kim@samsung.com>
Tue, 25 Feb 2020 07:03:56 +0000 (07:03 +0000)
Recovery check routine changed after the recovery file is created

Change-Id: Ie3641e07104ba1f4bc6e3ee7d7a6dc1396a3ed5d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/unit_tests/extensive_smoke_test.cc

index 07ba42945ae6aaef9d7e98f40df32aac94c2a288..7d6afdb19a4867abb153627df9eab96e1314cb52 100644 (file)
@@ -135,7 +135,7 @@ TEST_F(SmokeTest, RecoveryMode_Tpk_Installation) {
   std::vector<std::string> 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<std::string> 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<std::string> 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<std::string> 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<std::string> 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";