@@ -288,8 +288,9 @@ def trig_match(bline):
288
288
vcplogname = 'pyot.vcp'
289
289
while connect_map :
290
290
if now () > timeout :
291
- raise TimeoutError (f'Cannot connect to QEMU VCPs '
292
- f'{ ", " .join (connect_map )} ' )
291
+ minfo = ', ' .join (f'{ d } @ { r [0 ]} :{ r [1 ]} '
292
+ for d , r in connect_map .items ())
293
+ raise TimeoutError (f'Cannot connect to QEMU VCPs: { minfo } ' )
293
294
connected = []
294
295
for vcpid , (host , port ) in connect_map .items ():
295
296
try :
@@ -1778,7 +1779,7 @@ def main():
1778
1779
exe .add_argument ('-F' , '--filter' , metavar = 'TEST' , action = 'append' ,
1779
1780
help = 'run tests with matching filter, prefix with "!" '
1780
1781
'to exclude matching tests' )
1781
- exe .add_argument ('-k' , '--timeout' , metavar = 'SECONDS' , type = int ,
1782
+ exe .add_argument ('-k' , '--timeout' , metavar = 'SECONDS' , type = float ,
1782
1783
help = f'exit after the specified seconds '
1783
1784
f'(default: { DEFAULT_TIMEOUT } secs)' )
1784
1785
exe .add_argument ('-z' , '--list' , action = 'store_true' ,
@@ -1797,6 +1798,8 @@ def main():
1797
1798
help = 'increase verbosity of QEMU virtual comm ports' )
1798
1799
extra .add_argument ('-d' , action = 'store_true' ,
1799
1800
help = 'enable debug mode' )
1801
+ extra .add_argument ('--quiet' , action = 'store_true' ,
1802
+ help = 'quiet logging: only be verbose on errors' )
1800
1803
extra .add_argument ('--log-time' , action = 'store_true' ,
1801
1804
help = 'show local time in log messages' )
1802
1805
extra .add_argument ('--debug' , action = 'append' , metavar = 'LOGGER' ,
@@ -1826,8 +1829,9 @@ def main():
1826
1829
log = configure_loggers (args .verbose , 'pyot' ,
1827
1830
args .vcp_verbose or 0 ,
1828
1831
'pyot.vcp' , name_width = 16 ,
1829
- ms = args .log_time , debug = args .debug ,
1830
- info = args .info , warning = args .warn )[0 ]
1832
+ ms = args .log_time , quiet = args .quiet ,
1833
+ debug = args .debug , info = args .info ,
1834
+ warning = args .warn )[0 ]
1831
1835
1832
1836
qfm = QEMUFileManager (args .keep_tmp )
1833
1837
qfm .set_qemu_src_dir (qemu_dir )
0 commit comments