git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea1ad58
)
r3521: Collect printer driver names in EnumPrinterDrivers.
author
Tim Potter
<tpot@samba.org>
Thu, 4 Nov 2004 06:40:28 +0000
(06:40 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:05:28 +0000
(13:05 -0500)
source/scripting/swig/torture/spoolss.py
patch
|
blob
|
history
diff --git
a/source/scripting/swig/torture/spoolss.py
b/source/scripting/swig/torture/spoolss.py
index 35a0a6039fd877606e41e901fa3d356727f40496..a75385e079823b3e76e4e4e97bb61187bf0e36e6 100644
(file)
--- a/
source/scripting/swig/torture/spoolss.py
+++ b/
source/scripting/swig/torture/spoolss.py
@@
-408,11
+408,12
@@
def test_EnumPrinterDrivers(pipe):
result = ResizeBufferCall(dcerpc.spoolss_EnumPrinterDrivers, pipe, r)
- for driver in dcerpc.unmarshall_spoolss_DriverInfo_array(
- result['buffer'], r['level'], result['count']):
-
- print driver
+ drivers = dcerpc.unmarshall_spoolss_DriverInfo_array(
+ result['buffer'], r['level'], result['count'])
+ if level == 1:
+ driver_names = map(lambda x: x['info1']['driver_name'], drivers)
+
def test_PrintServer(pipe):