@@ -190,10 +190,10 @@ def test_cmdline_no_config(self):
190190 ]
191191
192192 tool = SMIDumpTool ()
193- dump = tool .run (mibfile )
193+ dump = tool .run (False , mibfile )
194194 self .assertIsInstance (dump , SMIDump )
195195 self .mock_popen .assert_called_once_with (
196- expected_cmd , stdout = PIPE , stderr = PIPE , close_fds = True
196+ expected_cmd , stdout = PIPE , stderr = PIPE , close_fds = False
197197 )
198198
199199 @mock .patch ("Products.ZenUtils.mib.tests.test_smidump.SMIConfigFile" )
@@ -217,11 +217,11 @@ def test_cmdline_with_config(self, mockConfig):
217217
218218 with mockConfig as cfg :
219219 tool = SMIDumpTool (config = cfg )
220- dump = tool .run (mibfile )
220+ dump = tool .run (False , mibfile )
221221
222222 self .assertIsInstance (dump , SMIDump )
223223 self .mock_popen .assert_called_once_with (
224- expected_cmd , stdout = PIPE , stderr = PIPE , close_fds = True
224+ expected_cmd , stdout = PIPE , stderr = PIPE , close_fds = False
225225 )
226226
227227 def test_cmdline_n_files (self ):
@@ -238,10 +238,10 @@ def test_cmdline_n_files(self):
238238 ]
239239
240240 tool = SMIDumpTool ()
241- dump = tool .run (mibfile1 , mibfile2 )
241+ dump = tool .run (False , mibfile1 , mibfile2 )
242242 self .assertIsInstance (dump , SMIDump )
243243 self .mock_popen .assert_called_once_with (
244- expected_cmd , stdout = PIPE , stderr = PIPE , close_fds = True
244+ expected_cmd , stdout = PIPE , stderr = PIPE , close_fds = False
245245 )
246246
247247 def test_cmdline_one_file_n_modules (self ):
@@ -257,10 +257,10 @@ def test_cmdline_one_file_n_modules(self):
257257 expected_cmd .extend (mibfile .module_names [:- 1 ])
258258
259259 tool = SMIDumpTool ()
260- dump = tool .run (mibfile )
260+ dump = tool .run (False , mibfile )
261261 self .assertIsInstance (dump , SMIDump )
262262 self .mock_popen .assert_called_once_with (
263- expected_cmd , stdout = PIPE , stderr = PIPE , close_fds = True
263+ expected_cmd , stdout = PIPE , stderr = PIPE , close_fds = False
264264 )
265265
266266 def test_cmdline_n_files_n_modules (self ):
@@ -285,10 +285,10 @@ def test_cmdline_n_files_n_modules(self):
285285 ]
286286
287287 tool = SMIDumpTool ()
288- dump = tool .run (mockMibFile1 , mockMibFile2 )
288+ dump = tool .run (False , mockMibFile1 , mockMibFile2 )
289289 self .assertIsInstance (dump , SMIDump )
290290 self .mock_popen .assert_called_once_with (
291- expected_cmd , stdout = PIPE , stderr = PIPE , close_fds = True
291+ expected_cmd , stdout = PIPE , stderr = PIPE , close_fds = False
292292 )
293293
294294 def test_cmd_error (self ):
@@ -301,5 +301,5 @@ def test_cmd_error(self):
301301
302302 tool = SMIDumpTool ()
303303 with self .assertRaises (RuntimeError ) as ex :
304- tool .run (mockMibFile )
304+ tool .run (False , mockMibFile )
305305 self .assertMultiLineEqual (str (ex .exception ), "smidump failed:\n boom" )
0 commit comments