Fix rocky template

specs/rocky/rocky-template.rst should be a symlink, not a text file
containing the path to the actual template. This fixes the tests, and
also improves them to properly report errors when whole sections are
missing.

Change-Id: Ie95d45d134e8f332ecdecc687a68deb7af6c30c3
changes/46/597646/2
Zane Bitter 4 years ago
parent d90acffe4e
commit 19cd10c314

@ -1 +0,0 @@
../templates/rocky-template.rst

@ -0,0 +1 @@
../templates/rocky-template.rst

@ -73,6 +73,8 @@ class TestTitles(testscenarios.WithScenarios, testtools.TestCase):
msgs.append("Extra sections: %s" % extra_sections)
for section in expect.keys():
if section not in actual:
continue
missing_subsections = [x for x in expect[section]
if x not in actual[section]]
# extra subsections are allowed

Loading…
Cancel
Save