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
This commit is contained in:
Zane Bitter 2018-08-29 15:48:39 -04:00
parent d90acffe4e
commit 19cd10c314
2 changed files with 3 additions and 1 deletions

View File

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

View File

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

View File

@ -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