From a9deda311ddc7ed79ab18c4ac107c1c01bcd6277 Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Tue, 18 Feb 2020 09:16:38 +0900 Subject: [PATCH] Fix smoke test Recovery check routine changed after the recovery file is created Change-Id: Ic2aa91853301c704d78cbc1a928b3a725c21f578 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 1f0a8ab..92abb49 100644 --- a/src/unit_tests/extensive_smoke_test.cc +++ b/src/unit_tests/extensive_smoke_test.cc @@ -93,7 +93,7 @@ TEST_F(SmokeTest, RecoveryMode_ForInstallation) { std::vector args = {"", "-i", path.string(), "-u", test_user_str.c_str()}; backend.CrashAfterEachStep(&args, [&](int step) -> bool { - if (step >= 1) { + if (step >= 2) { bf::path recovery_file = FindRecoveryFile("/wgt-recovery", params.test_user.uid); EXTENDED_ASSERT_FALSE(recovery_file.empty()); @@ -118,7 +118,7 @@ TEST_F(SmokeTest, RecoveryMode_ForUpdate) { std::vector args = {"", "-i", path_new.string(), "-u", test_user_str.c_str()}; backend.CrashAfterEachStep(&args, [&](int step) -> bool { - if (step >= 1) { + if (step >= 2) { bf::path recovery_file = FindRecoveryFile("/wgt-recovery", params.test_user.uid); EXTENDED_ASSERT_FALSE(recovery_file.empty()); @@ -146,7 +146,7 @@ TEST_F(SmokeTest, RecoveryMode_ForDelta) { std::vector args = {"", "-i", path_new.string(), "-u", test_user_str.c_str()}; backend.CrashAfterEachStep(&args, [&](int step) -> bool { - if (step >= 1) { + if (step >= 2) { bf::path recovery_file = FindRecoveryFile("/wgt-recovery", params.test_user.uid); EXTENDED_ASSERT_FALSE(recovery_file.empty()); @@ -171,7 +171,7 @@ TEST_F(SmokeTest, RecoveryMode_ForMountInstall) { std::vector args = {"", "-w", path.string(), "-u", test_user_str.c_str()}; backend.CrashAfterEachStep(&args, [&](int step) -> bool { - if (step >= 1) { + if (step >= 2) { bf::path recovery_file = FindRecoveryFile("/wgt-recovery", params.test_user.uid); EXTENDED_ASSERT_FALSE(recovery_file.empty()); @@ -197,7 +197,7 @@ TEST_F(SmokeTest, RecoveryMode_ForMountUpdate) { std::vector args = {"", "-w", path_new.string(), "-u", test_user_str.c_str()}; backend.CrashAfterEachStep(&args, [&](int step) -> bool { - if (step >= 1) { + if (step >= 2) { // Filesystem may be mounted after crash ScopedTzipInterface poweroff_unmount_interface(pkgid, params.test_user.uid); -- 2.7.4