Skip to content

Commit 2048d0b

Browse files
authored
Merge pull request #21 from NVIDIA/fix-parsing-no-logs
Handle situations where no logs are found
2 parents 3a9c76f + 218929a commit 2048d0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bobber/lib/analysis/parse_results.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ def main(directory, baseline=None, verbose=False,
112112
final_dictionary_output = {'systems': {}}
113113

114114
log_files = get_files(directory)
115+
if len(log_files) < 1:
116+
print('No log files found. Please specify a directory containing '
117+
'valid logs.')
118+
print('Exiting...')
119+
sys.exit(1)
115120
bobber_version = check_bobber_version(log_files,
116121
override_version_check)
117122
bw_results = parse_fio_bw(log_files)

0 commit comments

Comments
 (0)