4 # Test that darcs fails appropriately when the target repo inventory file is not writable.
7 not
() { "$@" && exit 1 ||
:; }
9 if echo $OS |
grep -i windows
; then
10 echo This
test does not work on Windows
14 if grep old-fashioned .darcs
/defaults
; then
15 echo This
test does not work with old-fashioned inventories
25 darcs record
-am "initial add"
26 if [ -e _darcs
/inventories
]; then
27 chmod 0555 _darcs
/inventories
/*
28 chmod 0555 _darcs
/inventories
30 if [ -e _darcs
/inventory
]; then
31 chmod 0555 _darcs
/inventory
38 darcs record
-am "new patch"
39 not darcs push
-a ..
/r1
2> log