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:
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)
|
msgs.append("Extra sections: %s" % extra_sections)
|
||||||
|
|
||||||
for section in expect.keys():
|
for section in expect.keys():
|
||||||
|
if section not in actual:
|
||||||
|
continue
|
||||||
missing_subsections = [x for x in expect[section]
|
missing_subsections = [x for x in expect[section]
|
||||||
if x not in actual[section]]
|
if x not in actual[section]]
|
||||||
# extra subsections are allowed
|
# extra subsections are allowed
|
||||||
|
|
Loading…
Reference in New Issue