Skip to content

Commit

Permalink
wiki: Add validation for variant_{info,upgrade}.md
Browse files Browse the repository at this point in the history
Change-Id: I1cb71894494d88687a04e5872d97eb3f18d36c28
  • Loading branch information
luk1337 committed Jul 21, 2024
1 parent ed2001d commit 60fddbc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/validate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ def validate_yaml_lint(path)
install_template = load_template('install.md')
update_template = load_template('update.md')
upgrade_template = load_template('upgrade.md')
variant_info_template = load_template('variant_info.md')
variant_upgrade_template = load_template('variant_upgrade.md')

Dir.glob(wiki_dir + '**/*.*').each do |filename|
next if filename.start_with?(wiki_dir + ".jekyll-cache/")
Expand Down Expand Up @@ -142,6 +144,12 @@ def validate_yaml_lint(path)
validate_template(update_template, update_dir + test_file, codename)
validate_template(upgrade_template, upgrade_dir + test_file, codename)

if device_json["variant"]
test_file = device_json["codename"] + ".md"
validate_template(variant_info_template, info_dir + test_file, codename)
validate_template(variant_upgrade_template, upgrade_dir + test_file, codename)
end

image = device_json["image"]
validate_image(device_image_dir + image, device_path)
validate_image(device_image_small_dir + image, device_path)
Expand Down

0 comments on commit 60fddbc

Please sign in to comment.