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:
@@ -1 +0,0 @@
|
||||
../templates/rocky-template.rst
|
||||
1
specs/rocky/rocky-template.rst
Symbolic link
1
specs/rocky/rocky-template.rst
Symbolic link
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user