summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-11-04 06:40:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:28 -0500
commit500ce03f7cb1cb2468b856cc9352422141cc9904 (patch)
treeb62a003e65a58b56c0f022c0d434ea32819915ba
parentd4f667c37761c5b633a522340282684977cc6cda (diff)
downloadsamba-500ce03f7cb1cb2468b856cc9352422141cc9904.tar.gz
samba-500ce03f7cb1cb2468b856cc9352422141cc9904.tar.bz2
samba-500ce03f7cb1cb2468b856cc9352422141cc9904.zip
r3521: Collect printer driver names in EnumPrinterDrivers.
(This used to be commit 86f54db1ef96fbffc6f1c7948d8bc849009a536d)
-rw-r--r--source4/scripting/swig/torture/spoolss.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/scripting/swig/torture/spoolss.py b/source4/scripting/swig/torture/spoolss.py
index 35a0a6039f..a75385e079 100644
--- a/source4/scripting/swig/torture/spoolss.py
+++ b/source4/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):