From 500ce03f7cb1cb2468b856cc9352422141cc9904 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 4 Nov 2004 06:40:28 +0000 Subject: r3521: Collect printer driver names in EnumPrinterDrivers. (This used to be commit 86f54db1ef96fbffc6f1c7948d8bc849009a536d) --- source4/scripting/swig/torture/spoolss.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source4/scripting') 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): -- cgit