Commit 0a8720d9 authored by Michael Terry's avatar Michael Terry

add location is too small test

parent d112fd3e
# Tests that we give appropriate message if backup location is just too small.
# Assume that 999TB is bigger than any disk we will run on.
[Operation]
Type=backup
Success=false
Error=Backup location is too small. Try using one with more space.
[Duplicity]
Runs=status;dry;
[Duplicity dry]
#INFO 2 999999999999999
Output=true
......@@ -508,6 +508,7 @@ internal class DuplicityJob : DejaDup.ToolJob
if (total < progress_total) {
// Tiny backup location. Suggest they get a larger one.
show_error(_("Backup location is too small. Try using one with more space."));
done(false, false, null);
return;
}
......@@ -530,6 +531,7 @@ internal class DuplicityJob : DejaDup.ToolJob
}
else {
show_error(_("Backup location does not have enough free space."));
done(false, false, null);
return;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment