diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-12-01 16:41:52 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-12-17 23:35:44 +0100 |
commit | 0b38587bcfa7c1d6b6cc46eb7f5fbac89579153f (patch) | |
tree | 914177a4931eb6f826a55172a75ced1f1984f354 /tests | |
parent | 8e039db541e76c94605063ea886852817377ab66 (diff) | |
download | clufter-0b38587bcfa7c1d6b6cc46eb7f5fbac89579153f.tar.gz clufter-0b38587bcfa7c1d6b6cc46eb7f5fbac89579153f.tar.xz clufter-0b38587bcfa7c1d6b6cc46eb7f5fbac89579153f.zip |
filters/cmd_wrap: revisit group/line wrap-filling algo
Previous one was just splitting into lines within a single group
(also, this was limited to at most one split! that in turn made
it a pretty broken text wrapping). Now it is two-ways allowing
also short-enough groups to be put on the same line, and as many
line splits is made as necessary for a proper text wrapping.
Also update the test counterparts (function run_check_cmd of
run-check script succeeds again after quite a long time!).
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/filters/cmd_wrap.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/filters/cmd_wrap.py b/tests/filters/cmd_wrap.py index 8117c20..f29ef1d 100644 --- a/tests/filters/cmd_wrap.py +++ b/tests/filters/cmd_wrap.py @@ -39,10 +39,11 @@ pcs -f tmp-cib.xml resource create RESOURCE-apache-webserver ocf:heartbeat:apach """), text_width=80) #print result.BYTESTRING() self.assertEquals(result.BYTESTRING(), """\ -pcs -f tmp-cib.xml \\ +pcs -f tmp-cib.xml \\ resource create RESOURCE-apache-webserver ocf:heartbeat:apache \\ 'options= -Dwebserver' \\ - op stop id=RESOURCE-apache-webserver-OP-stop name=stop interval=0 timeout=122s + op stop id=RESOURCE-apache-webserver-OP-stop name=stop interval=0 \\ + timeout=122s """) |