summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/stubs
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2011-08-19 11:22:51 +1000
committerMartin Schwenke <martin@meltin.net>2011-08-30 16:51:55 +1000
commitf3c590c199721117869d19294d7065493b3613ca (patch)
treee18e56ad83ccacefd06f9e1bf23a4476b5af4234 /ctdb/tests/eventscripts/stubs
parent625e0c5aea92de751a806b5d27af49d2441d1135 (diff)
downloadsamba-f3c590c199721117869d19294d7065493b3613ca.tar.gz
samba-f3c590c199721117869d19294d7065493b3613ca.tar.xz
samba-f3c590c199721117869d19294d7065493b3613ca.zip
Tests - eventscripts exportfs stub should splits lines
The real exportfs splits lines longer than 15 characters. The stub should do that too... Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fb3e123b097d9e36d281c3ab4f3e9a4799fa27bc)
Diffstat (limited to 'ctdb/tests/eventscripts/stubs')
-rwxr-xr-xctdb/tests/eventscripts/stubs/exportfs8
1 files changed, 7 insertions, 1 deletions
diff --git a/ctdb/tests/eventscripts/stubs/exportfs b/ctdb/tests/eventscripts/stubs/exportfs
index 72a11d5741..46c65225be 100755
--- a/ctdb/tests/eventscripts/stubs/exportfs
+++ b/ctdb/tests/eventscripts/stubs/exportfs
@@ -3,5 +3,11 @@
opts="10.0.0.0/16(rw,async,insecure,no_root_squash,no_subtree_check)"
for i in $FAKE_SHARES ; do
- echo "${i} ${opts}"
+ # Directories longer than 15 characters are printed on their own
+ # line.
+ if [ ${#i} -ge 15 ] ; then
+ printf '%s\n\t\t%s\n' "$i" "$opts"
+ else
+ printf '%s\t%s\n' "$i" "$opts"
+ fi
done