Skip to content

Commit

Permalink
fixed the maximum log test
Browse files Browse the repository at this point in the history
Signed-off-by: Elad Gershon <egershon@nvidia.com>
  • Loading branch information
egershonNvidia committed Sep 17, 2024
1 parent 416c00d commit c204de5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def check_logs(config):
continue
print_test_result("amount of telemetry logs in the folder equal to maximum or maximum plus 1 (did not clean the plus 1 yet).",
len(files), MAX_LOG_FILES)
if len(files) == MAX_LOG_FILES or len(files) == MAX_LOG_FILES + 1:
if len(files) != MAX_LOG_FILES and len(files) != MAX_LOG_FILES + 1:
saved_files_tests = False
files.sort(key=lambda p: p.name,reverse=True)
latest_file = files[0].name
Expand Down

0 comments on commit c204de5

Please sign in to comment.