Skip to content

Commit

Permalink
CI: Fix Validation. Print marklog on failed validation
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi311 committed Oct 27, 2024
1 parent 9016796 commit 489cbd8
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions test/validate_ci_marklog.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,19 @@ def main():
"JellyUser/Shows/Monarch: Legacy of Monsters/Parallels and Interiors/4",
]
expected_plex = [
"JellyUser/Movies/Big Buck Bunny",
"JellyUser/Movies/Killers of the Flower Moon/4",
"JellyUser/Shows/Doctor Who/The Unquiet Dead",
"JellyUser/Shows/Doctor Who/Aliens of London (1)/4",
"JellyUser/Shows/Monarch: Legacy of Monsters/Secrets and Lies",
"JellyUser/Shows/Monarch: Legacy of Monsters/Parallels and Interiors/4",
"jellyplex_watched/Movies/Big Buck Bunny",
"jellyplex_watched/Movies/The Family Plan",
"jellyplex_watched/Movies/Killers of the Flower Moon/4",
"jellyplex_watched/TV Shows/Doctor Who (2005)/The Unquiet Dead",
"jellyplex_watched/TV Shows/Doctor Who (2005)/Aliens of London (1)/4",
"jellyplex_watched/TV Shows/Monarch: Legacy of Monsters/Secrets and Lies",
"jellyplex_watched/TV Shows/Monarch: Legacy of Monsters/The Way Out",
"Jellyfin/ea447008efac/JellyUser/Movies/Big Buck Bunny",
"Jellyfin/ea447008efac/JellyUser/Movies/Killers of the Flower Moon/4",
"Jellyfin/ea447008efac/JellyUser/Shows/Doctor Who/The Unquiet Dead",
"Jellyfin/ea447008efac/JellyUser/Shows/Doctor Who/Aliens of London (1)/4",
"Jellyfin/ea447008efac/JellyUser/Shows/Monarch: Legacy of Monsters/Secrets and Lies",
"Jellyfin/ea447008efac/JellyUser/Shows/Monarch: Legacy of Monsters/Parallels and Interiors/4",
"Emby/6f9f64ff0a14/jellyplex_watched/Movies/Big Buck Bunny",
"Emby/6f9f64ff0a14/jellyplex_watched/Movies/The Family Plan",
"Emby/6f9f64ff0a14/jellyplex_watched/Movies/Killers of the Flower Moon/4",
"Emby/6f9f64ff0a14/jellyplex_watched/TV Shows/Doctor Who (2005)/The Unquiet Dead",
"Emby/6f9f64ff0a14/jellyplex_watched/TV Shows/Doctor Who (2005)/Aliens of London (1)/4",
"Emby/6f9f64ff0a14/jellyplex_watched/TV Shows/Monarch: Legacy of Monsters/Secrets and Lies",
"Emby/6f9f64ff0a14/jellyplex_watched/TV Shows/Monarch: Legacy of Monsters/The Way Out",
]

expected_dry = expected_emby + expected_plex + expected_jellyfin
Expand Down Expand Up @@ -164,6 +164,12 @@ def main():
lines = read_marklog()
if not check_marklog(lines, expected_values):
print("Failed to validate marklog")
for line in lines:
# Remove the newline character
line = line.strip()

print(line)

exit(1)

print("Successfully validated marklog")
Expand Down

0 comments on commit 489cbd8

Please sign in to comment.