summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2022-01-21 20:06:40 +0100
committerJule Anger <janger@samba.org>2022-01-30 09:15:13 +0000
commit7b844ab490c0093fee3e0baaae2f7d77043ee409 (patch)
treef46ceb410b9c73cd9ac8a72827e7c011c41e1a49 /python
parentec8b2ae38a99a0e914e9f5764ff881587546a655 (diff)
downloadsamba-7b844ab490c0093fee3e0baaae2f7d77043ee409.tar.gz
blackbox.ndrdump: adjust example files to changed dump_data() output.
The cleanup using dump_data_block16() fixed the space handling. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14956 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 9110a8854a518befa2908c26076e17a085c5ec48)
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/blackbox/ndrdump.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/samba/tests/blackbox/ndrdump.py b/python/samba/tests/blackbox/ndrdump.py
index 9a4e6cabe8b..b64ac705868 100644
--- a/python/samba/tests/blackbox/ndrdump.py
+++ b/python/samba/tests/blackbox/ndrdump.py
@@ -171,7 +171,7 @@ dump OK
def test_ndrdump_input_cmdline_short_struct_name_dump(self):
expected = '''pull returned Buffer Size Error
6 bytes consumed
-[0000] 61 62 63 64 65 66 67 abcdefg ''' \
+[0000] 61 62 63 64 65 66 67 abcdefg''' \
'''
'''
try:
@@ -187,10 +187,10 @@ dump OK
def test_ndrdump_input_cmdline_short_struct_name_print_fail(self):
expected = '''pull returned Buffer Size Error
6 bytes consumed
-[0000] 61 62 63 64 65 66 67 abcdefg ''' \
+[0000] 61 62 63 64 65 66 67 abcdefg''' \
'''
WARNING! 1 unread bytes
-[0000] 67 g ''' \
+[0000] 67 g''' \
'''
WARNING: pull of GUID was incomplete, therefore the parse below may SEGFAULT
GUID : 64636261-6665-0000-0000-000000000000
@@ -212,7 +212,7 @@ WARNING! 53 unread bytes
[0000] 00 FF 00 00 FF 00 00 00 00 09 00 00 00 08 00 33 ........ .......3
[0010] 33 32 37 36 32 36 39 33 32 37 36 38 34 01 00 00 32762693 27684...
[0020] 80 32 0D FF 00 00 FF 00 00 00 00 08 00 00 00 1C .2...... ........
-[0030] F1 29 08 00 00 .)... ''' \
+[0030] F1 29 08 00 00 .)...''' \
b'''
clusapi_QueryAllValues: struct clusapi_QueryAllValues
out: struct clusapi_QueryAllValues
@@ -397,7 +397,7 @@ dump OK
def test_ndrdump_fuzzed_spoolss_EnumForms(self):
expected_head = b'''pull returned Success
WARNING! 2 unread bytes
-[0000] 00 00 .. ''' b'''
+[0000] 00 00 ..''' b'''
spoolss_EnumForms: struct spoolss_EnumForms
out: struct spoolss_EnumForms
count : *