std::vector<std::string> 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());
std::vector<std::string> 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());
std::vector<std::string> 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());
std::vector<std::string> 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());
std::vector<std::string> 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);