git.samba.org
/
ddiss
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08eeb78
)
Tests - eventscripts exportfs stub should splits lines
author
Martin Schwenke
<martin@meltin.net>
Fri, 19 Aug 2011 01:22:51 +0000
(11:22 +1000)
committer
Martin Schwenke
<martin@meltin.net>
Tue, 30 Aug 2011 06:51:55 +0000
(16:51 +1000)
The real exportfs splits lines longer than 15 characters. The stub
should do that too...
Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/eventscripts/stubs/exportfs
patch
|
blob
|
history
diff --git
a/tests/eventscripts/stubs/exportfs
b/tests/eventscripts/stubs/exportfs
index 72a11d5741390045bde3a847da5527152e3eb873..46c65225be17f5012137037fb992a033e17e6241 100755
(executable)
--- a/
tests/eventscripts/stubs/exportfs
+++ b/
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