@@ -215,12 +215,14 @@ def test_009_file_copy_tty(self):
215215 finally :
216216 delattr (ClusterShell .CLI .Clush , '_f_user_interaction' )
217217
218+ @unittest .skipIf (HOSTNAME == 'localhost' , "does not work with hostname set to 'localhost'" )
218219 def test_010_diff (self ):
219220 """test clush (diff)"""
220221 self ._clush_t (["-w" , HOSTNAME , "--diff" , "echo" , "ok" ], None , b"" )
221222 self ._clush_t (["-w" , "%s,localhost" % HOSTNAME , "--diff" , "echo" ,
222223 "ok" ], None , b"" )
223224
225+ @unittest .skipIf (HOSTNAME == 'localhost' , "does not work with hostname set to 'localhost'" )
224226 def test_011_diff_tty (self ):
225227 """test clush (diff) [tty]"""
226228 setattr (ClusterShell .CLI .Clush , '_f_user_interaction' , True )
@@ -229,6 +231,7 @@ def test_011_diff_tty(self):
229231 finally :
230232 delattr (ClusterShell .CLI .Clush , '_f_user_interaction' )
231233
234+ @unittest .skipIf (HOSTNAME == 'localhost' , "does not work with hostname set to 'localhost'" )
232235 def test_012_diff_null (self ):
233236 """test clush (diff w/o output)"""
234237 rxs = r"^--- %s\n\+\+\+ localhost\n@@ -1(,1)? \+[01],0 @@\n-ok\n$" % HOSTNAME
@@ -268,6 +271,7 @@ def test_016_stderr_tty(self):
268271 finally :
269272 delattr (ClusterShell .CLI .Clush , '_f_user_interaction' )
270273
274+ @unittest .skipIf (HOSTNAME == 'localhost' , "does not work with hostname set to 'localhost'" )
271275 def test_017_retcodes (self ):
272276 """test clush (retcodes)"""
273277 s = "clush: %s: exited with exit code 1\n " % HOSTNAME
@@ -301,6 +305,7 @@ def test_017_retcodes(self):
301305 s .encode ())
302306 self ._clush_t (["-w" , duo , "-S" , "-b" , "-q" , "/bin/false" ], None , b"" , 1 )
303307
308+ @unittest .skipIf (HOSTNAME == 'localhost' , "does not work with hostname set to 'localhost'" )
304309 def test_018_retcodes_tty (self ):
305310 """test clush (retcodes) [tty]"""
306311 setattr (ClusterShell .CLI .Clush , '_f_user_interaction' , True )
@@ -468,6 +473,7 @@ def test_030_config_options(self):
468473 "color=never" , "-w" , HOSTNAME , "echo" , "ok" ], None ,
469474 self .output_ok )
470475
476+ @unittest .skipIf (HOSTNAME == 'localhost' , "does not work with hostname set to 'localhost'" )
471477 def test_031_progress (self ):
472478 """test clush -P/--progress"""
473479 self ._clush_t (["-w" , HOSTNAME , "--progress" , "echo" , "ok" ], None ,
@@ -518,6 +524,7 @@ def test_033_worker_pdsh_tty(self):
518524 finally :
519525 delattr (ClusterShell .CLI .Clush , '_f_user_interaction' )
520526
527+ @unittest .skipIf (HOSTNAME == 'localhost' , "does not work with hostname set to 'localhost'" )
521528 def test_034_pick (self ):
522529 """test clush --pick"""
523530 rxs = r"^(localhost|%s): foo\n$" % HOSTNAME
0 commit comments