test: ignore empty files
Some raw log files may be empty if we cancelled tuhi at the wrong time. Skip over those while testing Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6c94898458
commit
8690e305cf
|
@ -449,6 +449,8 @@ def search_for_tests():
|
|||
with open(logfile) as fd:
|
||||
try:
|
||||
yml = yaml.load(fd, Loader=yaml.Loader)
|
||||
if not yml:
|
||||
continue
|
||||
timestamp = yml['time']
|
||||
test_name = f'test_log_{timestamp}'
|
||||
test = generator(logfile)
|
||||
|
|
Loading…
Reference in New Issue