summaryrefslogtreecommitdiff
path: root/yarns/0030-basics.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-03-27 20:29:56 +0000
committerLars Wirzenius <liw@liw.fi>2014-03-27 20:29:56 +0000
commita17cdfe3eca1aa308809697ddc2c170a7cc6b501 (patch)
treed581e79813e7795af21e81858684722828d92340 /yarns/0030-basics.yarn
parent29de9e039fe41ad6957b82cbb745e7d690598b7c (diff)
downloadobnam-a17cdfe3eca1aa308809697ddc2c170a7cc6b501.tar.gz
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.)
Diffstat (limited to 'yarns/0030-basics.yarn')
-rw-r--r--yarns/0030-basics.yarn19
1 files changed, 19 insertions, 0 deletions
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
-----------------------