summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):