-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runner returns success when check failed #54
Comments
Hi, This But I think you are right, a failing check should fail the backup as well.
|
Fixed in version 3.0.1, once again thanks for reporting this. |
To make sure everything (backup, check, crypt, sync and cleanup) worked you still have to use |
You're too good! Thanks man :) |
The point here is that using
$result = $this->runner->run($configuration);
the following should returnfalse
when a check failed:$result->wasSuccessful()
. But in my test case, it returns true as in success. While it should return that the entire backup failed because the check failed, right?Debugged it and boils down to this (I could be totally wrong though):
backupsFailed
) is only updated when a backup itself failed (https://github.com/sebastianfeldmann/phpbu/blob/master/src/Result.php#L237). ThechecksFailed
value is not being used anywhere except in the verbose CLI logging, I think?In short, shouldn't
wasSuccessful
in the result class also check for failed checks, syncs, … instead of just backups?The text was updated successfully, but these errors were encountered: