From a17cdfe3eca1aa308809697ddc2c170a7cc6b501 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 27 Mar 2014 20:29:56 +0000 Subject: Convert unreadable-file cmdtest to yarn Doing this exposed a bug in yarn, which meant that the test needs a newer yarn to run. (Not yet released.) --- yarns/0030-basics.yarn | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'yarns/0030-basics.yarn') diff --git a/yarns/0030-basics.yarn b/yarns/0030-basics.yarn index 936d3be8..0a04c98b 100644 --- a/yarns/0030-basics.yarn +++ b/yarns/0030-basics.yarn @@ -123,6 +123,25 @@ backup run. AND L, restored to X, matches manifest M +Backup when a file or directory is unreadable +--------------------------------------------- + +The backup shouldn't fail even if a file or directory is inaccessible. + + SCENARIO unreadable live data file + +We can't run this test as the `root` user, since then everything is +readable. + + ASSUMING not running as root + +Create some live data, and a file that is unreadable. + + GIVEN 1k of new data in directory L + AND file L/unreadable-file with permissions 000 + WHEN user U attempts to back up directory L to repository R + THEN the error message matches "RCE08AX.*L/unreadable-file" + Backup to roots at once ----------------------- -- cgit v1.2.1